-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile.wmg_pipeline
39 lines (30 loc) · 1.16 KB
/
Dockerfile.wmg_pipeline
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
37
38
39
ARG BASE_TAG=branch-main
FROM python:3.10
# Update AWS root Certificates
ADD https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem /etc/ssl/certs/rds-global-bundle.pem
RUN /usr/local/bin/python -m pip install --upgrade pip && \
apt update && apt -y install graphviz graphviz-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get install unzip && \
apt-get install curl && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
# For lighter weight Docker images
ENV PIP_NO_CACHE_DIR=1
WORKDIR /
COPY /python_dependencies/wmg_processing/ .
COPY /python_dependencies/common/ .
ARG INSTALL_DEV=false
RUN pip3 install -r requirements.txt
RUN if [ "$INSTALL_DEV" = "true" ]; then python3 -m pip install -r requirements-dev.txt; fi
ADD backend/__init__.py backend/__init__.py
ADD backend/wmg/pipeline backend/wmg/pipeline
ADD backend/common backend/common
ARG HAPPY_BRANCH="unknown"
ARG HAPPY_COMMIT=""
LABEL branch=${HAPPY_BRANCH}
LABEL commit=${HAPPY_COMMIT}
ENV COMMIT_SHA=${HAPPY_COMMIT}
ENV COMMIT_BRANCH=${HAPPY_BRANCH}
CMD ["python3", "-m", "backend.wmg.pipeline.pipeline"]