Last active
August 15, 2024 14:55
-
-
Save kylefelipe/1f53605866f3cc5e1c19d5893d0ad4c6 to your computer and use it in GitHub Desktop.
Revisions
-
kylefelipe revised this gist
Aug 15, 2024 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ FROM python:3.11 WORKDIR /app COPY ./requirements.txt /app RUN apt-get update -y RUN apt-get install -qqy python3-pip libgdal-dev gdal-bin postgresql-client nano RUN apt-get clean RUN pip install --no-cache-dir -r requirements.txt COPY . /app RUN python manage.py collectstatic --no-input EXPOSE 8000 CMD ["gunicorn", "geoportal_backend.wsgi:application", "--bind", "0.0.0.0:8000"] -
kylefelipe created this gist
Aug 15, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ estou tentando fazer um deploy de uma aplicação em django usando Docker + Coolify... quando sudo o container no meu pc, consigo acessar o django tranquilamente,... mas quando eu acesso o nosso servidor de teste... a primeira página (admin) aparece normalmente mas as seguntes nao funcionam os státicos.... segue o arquivo Dockerfile