Skip to content
Snippets Groups Projects

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

Merged Kay Effenberger requested to merge fix-steering-permissions into main
1 unresolved thread
1 file
+ 6
6
Compare changes
  • Side-by-side
  • Inline
+ 6
6
@@ -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
    • Ole Binder @Loxbie commented on commit 94826c8b
      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"]
Loading