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