mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-04 10:24:41 +02:00
22 lines
458 B
Docker
22 lines
458 B
Docker
# syntax=docker/dockerfile-upstream:1.4.3
|
|
|
|
# setup image
|
|
FROM base
|
|
|
|
ARG VERSION=local
|
|
LABEL version=$VERSION
|
|
|
|
COPY flavors /data/flavors
|
|
COPY templates /data/templates
|
|
COPY static ./static
|
|
COPY server.py ./server.py
|
|
COPY main.py ./main.py
|
|
|
|
RUN echo $VERSION >> /version
|
|
|
|
EXPOSE 80/tcp
|
|
HEALTHCHECK --start-period=350s CMD curl -m3 -skfLo /dev/null http://localhost/
|
|
USER mailu
|
|
|
|
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|