Skip to content

Instantly share code, notes, and snippets.

@kylefelipe
Last active August 15, 2024 14:55
Show Gist options
  • Select an option

  • Save kylefelipe/1f53605866f3cc5e1c19d5893d0ad4c6 to your computer and use it in GitHub Desktop.

Select an option

Save kylefelipe/1f53605866f3cc5e1c19d5893d0ad4c6 to your computer and use it in GitHub Desktop.

Revisions

  1. kylefelipe revised this gist Aug 15, 2024. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions Dockerfile
    Original 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"]
  2. kylefelipe created this gist Aug 15, 2024.
    5 changes: 5 additions & 0 deletions problema.md
    Original 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