Skip to content
Snippets Groups Projects
Commit 94826c8b authored by Kay Effenberger's avatar Kay Effenberger
Browse files

fix(Dockerfile): :bug: To avoid permsiions problems, we will set permission at dockerfile

parent db206c15
No related branches found
No related tags found
1 merge request!27fix(Dockerfile): :bug: To avoid permsiions problems, we will set permission at dockerfile
Pipeline #7061 passed
......@@ -24,12 +24,6 @@ COPY . .
VOLUME ["/app"]
RUN adduser --home /app --no-create-home --system --uid ${AURA_UID} --group app
RUN mkdir -p /app/logs
RUN chown -R app:app /app
USER app
# run with Django's development server
CMD ["run.dev"]
......@@ -37,6 +31,12 @@ FROM base AS prod
COPY . .
RUN adduser --home /app --no-create-home --system --uid ${AURA_UID} --group app
RUN mkdir -p /app/logs
RUN mkdir -p /app/static/admin
  • Owner

    We also need to create the /app/static/site_media here, otherwise we can not upload images. But I am not sure if this is the right approach at all.

  • Please register or sign in to reply
RUN chown -R app:app /app
USER app
# run with gunicorn
CMD ["run.prod"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment