|
|
@ -1,12 +1,13 @@
|
|
|
|
FROM python:3-alpine
|
|
|
|
ARG DISTRO=alpine:3.8
|
|
|
|
|
|
|
|
FROM $DISTRO
|
|
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
ARG version=master
|
|
|
|
ARG version=master
|
|
|
|
ENV VERSION=$version
|
|
|
|
ENV VERSION=$version
|
|
|
|
|
|
|
|
|
|
|
|
RUN pip install -r /requirements.txt \
|
|
|
|
RUN apk add --no-cache nginx curl python3 \
|
|
|
|
&& apk add --no-cache nginx curl \
|
|
|
|
&& pip3 install -r /requirements.txt \
|
|
|
|
&& mkdir /run/nginx
|
|
|
|
&& mkdir /run/nginx
|
|
|
|
|
|
|
|
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|