Spaces:
Runtime error
Runtime error
Commit
·
79fc965
1
Parent(s):
6a64f9b
trying to edit django
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -4,8 +4,7 @@ ENV ADMIN_USERNAME=admin
|
|
4 | |
5 |
ENV ADMIN_PASSWORD=password
|
6 |
|
7 |
-
RUN sed -i 's/DENY/SAMEORIGIN/g' /doccano/docker/nginx/default.conf # doesnt do anything... doesnt seem to be using nginx
|
8 |
-
|
9 |
RUN echo "X_FRAME_OPTIONS = 'SAMEORIGIN'" > /doccano/local_settings.py
|
|
|
10 |
|
11 |
CMD ["/doccano/tools/run.sh"]
|
|
|
4 | |
5 |
ENV ADMIN_PASSWORD=password
|
6 |
|
|
|
|
|
7 |
RUN echo "X_FRAME_OPTIONS = 'SAMEORIGIN'" > /doccano/local_settings.py
|
8 |
+
RUN sed -i 's/"django.middleware.clickjacking.XFrameOptionsMiddleware",//g' /doccano/backend/config/settings/base.py
|
9 |
|
10 |
CMD ["/doccano/tools/run.sh"]
|