gtfs-dagster/Dockerfile_user_code_gtfs
2025-11-05 17:24:58 -08:00

20 lines
No EOL
509 B
Text

FROM python:3.10-slim
# Checkout and install dagster libraries needed to run the gRPC server
# exposing your repository to dagster-webserver and dagster-daemon, and to load the DagsterInstance
RUN pip install \
dagster \
dagster-postgres \
dagster-docker
WORKDIR /opt/dagster/app
COPY user_code/gtfs /opt/dagster/app
COPY definitions.py /opt/dagster/app
# Run dagster gRPC server on port 4000
EXPOSE 4000
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "definitions.py"]