2021-09-01 18:56:44 +02:00
|
|
|
ARG DISTRO=alpine:3.14.2
|
2019-03-31 07:06:42 +02:00
|
|
|
FROM $DISTRO
|
2021-11-17 22:00:04 +02:00
|
|
|
ARG VERSION
|
|
|
|
ENV TZ Etc/UTC
|
|
|
|
LABEL version=$VERSION
|
|
|
|
RUN echo $VERSION >> /version
|
2018-04-22 12:02:59 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY requirements.txt requirements.txt
|
2019-10-09 18:09:18 +02:00
|
|
|
RUN apk add --no-cache curl python3 py3-pip \
|
|
|
|
&& pip3 install -r requirements.txt
|
2018-04-22 12:02:59 +02:00
|
|
|
|
|
|
|
COPY server.py ./server.py
|
|
|
|
COPY main.py ./main.py
|
2018-12-16 16:26:45 +02:00
|
|
|
COPY flavors /data/flavors
|
|
|
|
COPY templates /data/templates
|
2018-11-07 16:41:11 +02:00
|
|
|
COPY static ./static
|
2018-04-22 12:02:59 +02:00
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
2018-08-26 20:11:48 +02:00
|
|
|
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|