From acb0a19170c94aef774f69f3f1a6b4396cbddde6 Mon Sep 17 00:00:00 2001 From: bencrealc Date: Wed, 5 Jan 2022 14:31:01 +0100 Subject: [PATCH] Prueba para el despliegue en docker Se han modificado algunos archivos para probar el correcto despliegue de docker bencrealc --- decide/decide/urls.py | 2 ++ docker/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/decide/decide/urls.py b/decide/decide/urls.py index d73f3cdb5d..2fe378159b 100644 --- a/decide/decide/urls.py +++ b/decide/decide/urls.py @@ -17,6 +17,7 @@ from django.contrib import admin from django.urls import path, include from rest_framework_swagger.views import get_swagger_view +from django.contrib.staticfiles.urls import staticfiles_urlpatterns schema_view = get_swagger_view(title='Decide API') @@ -31,3 +32,4 @@ urlpatterns += [ path('{}/'.format(module), include('{}.urls'.format(module))) ] + urlpatterns+= staticfiles_urlpatterns() diff --git a/docker/Dockerfile b/docker/Dockerfile index 032eed28e2..f3dbb5b2dd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,7 +10,8 @@ RUN pip install ipython WORKDIR /app -RUN git clone https://github.com/wadobo/decide.git . +#RUN git clone https://github.com/wadobo/decide.git . +RUN git clone https://github.com/bencrealc/Decide.git . RUN pip install -r requirements.txt WORKDIR /app/decide