Browse Source

Update Dockerfiles, fix #1388, fix #1387

pull/1391/head
Hironsan 3 years ago
parent
commit
223a713d2c
3 changed files with 6 additions and 3 deletions
  1. 3
      .dockerignore
  2. 3
      backend/Dockerfile.prod
  3. 3
      nginx/Dockerfile

3
.dockerignore

@ -17,6 +17,9 @@ backend/**/webpack-stats.json
backend/**/*.sqlite3
backend/**/.env
backend/**/junitxml/
backend/media
backend/filepond-temp-uploads
backend/stored_uploads
backend/**/staticfiles/
backend/**/venv/
backend/**/__pycache__/

3
backend/Dockerfile.prod

@ -29,9 +29,8 @@ RUN apt-get update \
COPY --chown=doccano:doccano tools/ /opt/bin/
RUN mkdir -p /backend/staticfiles \
&& chown -R doccano:doccano /backend/staticfiles \
&& mkdir -p /backend/client/dist/static \
&& chown -R doccano:doccano /backend/client/dist/static \
&& mkdir -p /backend/media \
&& chown -R doccano:doccano /backend/
USER doccano:doccano

3
nginx/Dockerfile

@ -19,7 +19,8 @@ COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
RUN chown -R doccano:doccano /var/cache/nginx \
&& chmod -R g+w /var/cache/nginx
&& chmod -R g+w /var/cache/nginx \
&& chown -R doccano:doccano /media
EXPOSE 8080

Loading…
Cancel
Save