File size: 489 Bytes
c0be5db
 
55f24ed
c0be5db
cefdcb4
 
9ab1d70
 
6a64f9b
79fc965
cefdcb4
 
1
2
3
4
5
6
7
8
9
10
11
12
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"]