prod Dockerfile runs without app prvs
This commit is contained in:
parent
730ff8deba
commit
043ee6f953
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ RUN mkdir -p /home/app
|
|||
|
||||
# create the app user
|
||||
# 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
|
||||
ENV HOME=/home/app
|
||||
|
@ -57,7 +57,7 @@ RUN pip install --no-cache /wheels/*
|
|||
COPY . $APP_HOME
|
||||
|
||||
# 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
|
||||
USER app
|
||||
# USER app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue