-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 871 Bytes
/
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
# syntax=docker/dockerfile:experimental
ARG REGISTRY_URL=$REGISTRY_URL
ARG CI_PROJECT_NAME=$CI_PROJECT_NAME
FROM $REGISTRY_URL/xnt/debian/buster:latest
ENV HOME=/app
ENV LANG en_US.utf8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN mkdir ${HOME}
WORKDIR ${HOME}
COPY . .
RUN curl -sS https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list && \
apt update && \
apt install -y kubectl python3.7-dev git python3-pip && \
rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
pip3 install --upgrade pip -U && \
pip3 install -r /app/requirements.txt && \
rm -rf /root/.cache
ENTRYPOINT ["gunicorn"]
CMD ["-c", "/etc/app/gunicorn.conf.py", "wsgi"]