From 87820051a7005cd0f85a7e23a7d8a4b9dd8475fb Mon Sep 17 00:00:00 2001 From: Tom Villette Date: Fri, 27 Jun 2025 13:30:17 +0200 Subject: [PATCH] add expose port to dockerfile and debug env var --- .env.template | 1 + Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.template b/.env.template index e2503a8..d329457 100644 --- a/.env.template +++ b/.env.template @@ -18,6 +18,7 @@ POSTGRES_DB= DRF_SECRET_KEY= DRF_DEBUG= +DEBUG= ALLOWED_HOSTS= CORS_ALLOWED_ORIGINS= CSRF_TRUSTED_ORIGINS= diff --git a/Dockerfile b/Dockerfile index a8c48b7..41a83bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,5 @@ COPY --chown=appuser:appuser authentication /app/authentication #COPY --chown=appuser:appuser static /app/static USER appuser +EXPOSE 8000 CMD ["uvicorn", "marbas.asgi:application", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file