mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-05 14:55:20 +02:00
setup doesn't need root
This commit is contained in:
parent
e5a1a353db
commit
21b9f76ebc
@ -12,9 +12,14 @@ COPY static ./static
|
|||||||
COPY server.py ./server.py
|
COPY server.py ./server.py
|
||||||
COPY main.py ./main.py
|
COPY main.py ./main.py
|
||||||
|
|
||||||
|
RUN set -euxo pipefail \
|
||||||
|
; apk add --no-cache libcap \
|
||||||
|
; setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn
|
||||||
|
|
||||||
RUN echo $VERSION >> /version
|
RUN echo $VERSION >> /version
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
EXPOSE 80/tcp
|
||||||
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/
|
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/
|
||||||
|
USER mailu
|
||||||
|
|
||||||
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user