From 544051857873797f8a8a53b8818c2518786b2c06 Mon Sep 17 00:00:00 2001 From: Jakub Kaniecki Date: Fri, 11 Oct 2024 20:47:59 +0200 Subject: [PATCH] dockerfile --- Dockerfile | 1 + izaac/settings.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dc77507..4cf5756 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ ENV REACT_CLIENT_ID="rrgNLSEqlcl45RVMQa0LxQLOHOgZ2L7ZlGpXUrCp" ENV REACT_CLIENT_SECRET="lKsmraeSmihY8rTQgd8TTGIncUloW7XokR8WLI0oZq8jCJ59guAkopg9ZOUeXFdyrqwuLi6TyXLZJDp1KB8DWEus05ttS3NQHoLvfRoOQtJpQaxzyIo85oykjQn25Keb" RUN pip install --upgrade pip COPY ./requirements.txt . +RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev python3-dev RUN pip install -r requirements.txt ENV DJANGO_SETTINGS_MODULE=izaac.settings diff --git a/izaac/settings.py b/izaac/settings.py index 4f7bd36..87bd3de 100644 --- a/izaac/settings.py +++ b/izaac/settings.py @@ -30,7 +30,7 @@ SECRET_KEY = "django-insecure-ztiqj957k(j*@ms=-^9j+=j7wd+cyo*+9g&hkfh1bji-@#&6(e # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['https://izaac.knck.pl'] +ALLOWED_HOSTS = ['https://izaac.knck.pl', 'izaac.knck.pl', 'localhost', 'izaac-backend', 'izaac-frontend'] CORS_ALLOW_ALL_ORIGINS = True @@ -38,6 +38,8 @@ CORS_ALLOWED_ORIGNS = [ "http://localhost:8000", "https://izaac.knck.pl", "http://izaac.knck.pl", + "izaac-frontend", + "izaac-backend", ] # CORS_ALLOWED_ORIGIN = [