From 8c9e27662e3d222719587b238ccdad6479f6ab56 Mon Sep 17 00:00:00 2001 From: Irwan Cahyono Date: Mon, 30 Jun 2025 13:23:50 +0700 Subject: [PATCH] docker compose --- Dockerfile | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index daceb5e..7206365 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,10 @@ COPY requirements.txt /app/ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy project -COPY /freekake_api/ /app/ +COPY . /app/ # Run migrations & collect static in production (optional) # CMD ["python", "manage.py", "migrate"] && ["python", "manage.py", "collectstatic", "--noinput"] # Command to run the server -# CMD ["gunicorn", "freekake_api.wsgi:application", "--bind", "0.0.0.0:8000"] +CMD ["gunicorn", "freekake_api.wsgi:application", "--bind", "0.0.0.0:8000"] diff --git a/docker-compose.yml b/docker-compose.yml index d2669d9..2517f98 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: . dockerfile: ./Dockerfile # command: gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000 - command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000" + # command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000" volumes: - .:/app - static_volume:/app/static