@ -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__/
@ -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
@ -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