prod Dockerfile runs without app prvs

This commit is contained in:
guntherweissenbaeck 2023-08-07 18:22:26 +02:00
parent 730ff8deba
commit 043ee6f953

View file

@ -39,7 +39,7 @@ 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 app # RUN addgroup --system app && adduser --system app app
# create the appropriate directories # create the appropriate directories
ENV HOME=/home/app ENV HOME=/home/app
@ -57,7 +57,7 @@ RUN pip install --no-cache /wheels/*
COPY . $APP_HOME COPY . $APP_HOME
# chown all the files to the app user # chown all the files to the app user
RUN chown -R app:app $APP_HOME # RUN chown -R app:app $APP_HOME
# change to the app user # change to the app user
USER app # USER app