-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.Dockerfile
36 lines (27 loc) · 1.28 KB
/
pipeline.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# syntax = docker/dockerfile:1
FROM python:3.11-slim
LABEL org.opencontainers.image.title="MobiData-BW Data Pipeline API"
LABEL org.opencontainers.image.authors="Holger Bruch <hb@mfdz.de>, MobiData-BW IPL contributors <mobidata-bw@nvbw.de>"
LABEL org.opencontainers.image.documentation="https://github.com/mobidata-bw/ipl-dagster-pipeline"
LABEL org.opencontainers.image.source="https://github.com/mobidata-bw/ipl-dagster-pipeline"
LABEL org.opencontainers.image.licenses="(EUPL-1.2)"
WORKDIR /opt/dagster/app
RUN apt update && apt install -y \
build-essential \
libgdal-dev \
lftp \
&& rm -rf /var/lib/apt/lists/*
# 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-pipeline.txt /opt/dagster/app
# Install requirements
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements-pipeline.txt
# Add repository code
COPY pipeline/ /opt/dagster/app/pipeline/
COPY scripts/ /opt/dagster/app/scripts/
# 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", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-m", "pipeline"]