FROM python:3.12-slim # Checkout and install dagster libraries needed to run the gRPC server # exposing your repository to dagit and dagster-daemon, and to load the DagsterInstance COPY requirements.txt . RUN pip install uv RUN uv pip install -r requirements.txt --system RUN uv pip install polars-lts-cpu --system ARG APP ENV PYTHONPATH=/apps/$APP/src/:/shared/src/ WORKDIR /opt/dagster/home # Run dagster gRPC server on port 4000 EXPOSE 4000 # CMD allows this to be overridden from run launchers or executors that want # to run other commands against your repository CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-m", "definitions"]