-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.pipe
30 lines (22 loc) · 962 Bytes
/
Dockerfile.pipe
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
FROM mambaorg/micromamba:1.5.5
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes
LABEL org.opencontainers.image.source=https://github.com/Urban-Analytics-Technology-Platform/demoland-engine
LABEL org.opencontainers.image.description="Container used to generate data for a deployment of a Demoland instance"
LABEL org.opencontainers.image.licenses=MIT
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN mkdir app
RUN mkdir data
RUN mkdir demoland_data
RUN chmod 777 /home/mambauser/.cache
RUN chmod 777 app
COPY . /app
COPY pipeline/pipeline.py /app/pipeline.py
COPY pipeline/index.ts /app/index.ts
WORKDIR /app
ENV DEMOLAND="tyne_and_wear_hex"
RUN python -c 'import demoland_engine'
RUN chmod -R 777 /home/mambauser/.cache/demoland_engine
# Run the Python script when the container launches
CMD python pipeline.py "$AREA_NAME" "$NAME" "$AOI_FILE_PATH" "$GTFS_FILE_PATH"