Browse Source

Fix permission for /backend

Fix permission for /backend
Issue: https://github.com/doccano/doccano/issues/1381#issue-903696635
pull/1382/head
Колюня 3 years ago
committed by GitHub
parent
commit
faf05cbb0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. 3
      backend/Dockerfile.prod

3
backend/Dockerfile.prod

@ -31,7 +31,8 @@ COPY --chown=doccano:doccano tools/ /opt/bin/
RUN mkdir -p /backend/staticfiles \ RUN mkdir -p /backend/staticfiles \
&& chown -R doccano:doccano /backend/staticfiles \ && chown -R doccano:doccano /backend/staticfiles \
&& mkdir -p /backend/client/dist/static \ && mkdir -p /backend/client/dist/static \
&& chown -R doccano:doccano /backend/client/dist/static
&& chown -R doccano:doccano /backend/client/dist/static \
&& chown -R doccano:doccano /backend/
USER doccano:doccano USER doccano:doccano
VOLUME /backend/staticfiles VOLUME /backend/staticfiles

Loading…
Cancel
Save