Docker prod file with app user

This commit is contained in:
gw3000 2023-08-05 21:48:25 +02:00
parent 103733cee5
commit 75e4023521

View file

@ -38,7 +38,8 @@ FROM python:3.11-slim
RUN mkdir -p /home/app RUN mkdir -p /home/app
# create the app user # create the app user
RUN addgroup --system app && adduser --system --group app # RUN addgroup --system app && adduser --system --group app
RUN addgroup --system app && adduser --system app
# create the appropriate directories # create the appropriate directories
ENV HOME=/home/app ENV HOME=/home/app