improve dockerfiles and adjust code paths
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
RUN apt update && apt install --no-install-recommends --yes git
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Checkout and install dagster libraries needed to run the gRPC server
|
||||
# exposing your repository to dagit and dagster-daemon, and to load the DagsterInstance
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends --yes \
|
||||
curl git \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PATH=/root/.local/bin:$PATH
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
WORKDIR /opt/dagster/home
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install uv
|
||||
RUN uv pip install -r requirements.txt --system
|
||||
RUN uv pip install polars-lts-cpu --system
|
||||
RUN uv pip install -r requirements.txt --system \
|
||||
&& uv pip install polars-lts-cpu --system
|
||||
|
||||
ARG APP
|
||||
ENV APP=$APP
|
||||
ENV PYTHONPATH=/apps/$APP/src/:/shared/src/:$PYTHONPATH
|
||||
WORKDIR /opt/dagster/home
|
||||
ENV PYTHONPATH=/code/apps/$APP/src/:/code/shared/src/:$PYTHONPATH
|
||||
|
||||
# Run dagster gRPC server on port 4000
|
||||
EXPOSE 4000
|
||||
|
||||
Reference in New Issue
Block a user