doccano / Dockerfile
derek-thomas's picture
derek-thomas HF staff
Update Dockerfile
9ab1d70
raw
history blame contribute delete
489 Bytes
FROM doccano/doccano
ENV ADMIN_USERNAME=admin
ENV ADMIN_EMAIL[email protected]
ENV ADMIN_PASSWORD=password
# Otherwise it gets blocked by X-FRAME DENY
# https://github.com/doccano/doccano/blob/a2918f792e2a1d076c5f3abbbc7af7e3b2c11d0b/backend/config/settings/base.py#L85
RUN echo "X_FRAME_OPTIONS = 'SAMEORIGIN'" > /doccano/local_settings.py
RUN sed -i 's/"django.middleware.clickjacking.XFrameOptionsMiddleware",//g' /doccano/backend/config/settings/base.py
CMD ["/doccano/tools/run.sh"]