Skip to content
Snippets Groups Projects
Commit 066f37ef authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'fix-steering-permissions' into 'main'

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

See merge request !27
parents db206c15 94826c8b
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 #7062 passed
...@@ -24,12 +24,6 @@ COPY . . ...@@ -24,12 +24,6 @@ COPY . .
VOLUME ["/app"] 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 # run with Django's development server
CMD ["run.dev"] CMD ["run.dev"]
...@@ -37,6 +31,12 @@ FROM base AS prod ...@@ -37,6 +31,12 @@ FROM base AS prod
COPY . . 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
RUN chown -R app:app /app
USER app
# run with gunicorn # run with gunicorn
CMD ["run.prod"] 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