2022-11-17 15:18:51 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2018-04-22 12:02:59 +02:00
|
|
|
|
2022-11-17 15:18:51 +02:00
|
|
|
# setup image
|
|
|
|
FROM base
|
2018-04-22 12:02:59 +02:00
|
|
|
|
2022-11-17 15:18:51 +02:00
|
|
|
ARG VERSION=local
|
|
|
|
LABEL version=$VERSION
|
2018-04-22 12:02:59 +02:00
|
|
|
|
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
|
2022-11-17 15:18:51 +02:00
|
|
|
COPY server.py ./server.py
|
|
|
|
COPY main.py ./main.py
|
|
|
|
|
|
|
|
RUN echo $VERSION >> /version
|
2018-04-22 12:02:59 +02:00
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
2022-11-17 15:18:51 +02:00
|
|
|
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/
|
2022-11-17 15:34:55 +02:00
|
|
|
USER mailu
|
2018-04-22 12:02:59 +02:00
|
|
|
|
2018-08-26 20:11:48 +02:00
|
|
|
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|