Browse Source

Ajusto dockerfile para usuario app

main
Celestino Rey 10 months ago
parent
commit
f104acf041
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      Dockerfile

+ 5
- 7
Dockerfile View File

@ -35,14 +35,13 @@ FROM python:3.11.4-slim-buster
# create directory for the app user
RUN mkdir -p /app
ENV APP_HOME=/app
RUN mkdir -p $APP_HOME/gestion_reservas/staticfiles
# create the app user
#RUN addgroup --system app && adduser --system --group app
RUN addgroup --system app && adduser --system --group app
# create the appropriate directories
ENV APP_HOME=/app
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
# install system dependencies
@ -56,15 +55,14 @@ RUN pip install --no-cache /wheels/*
# copy entrypoint.sh
COPY ./entrypoint.sh .
# copy project
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
WORKDIR $APP_HOME/gestion_reservas
# run entrypoint.sh


Loading…
Cancel
Save