From 1b50bd466a263cab1e7d9c7e9acb27fd4d5e7bb2 Mon Sep 17 00:00:00 2001 From: mazzasaverio Date: Tue, 6 Feb 2024 17:51:38 +0100 Subject: [PATCH] UPDATE --- backend/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 5c96d6a..4dcaae0 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -14,6 +14,5 @@ RUN pip install --no-cache-dir -r requirements.txt ENV PYTHONPATH=/code EXPOSE 8000 -# Run the application -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD uvicorn app.main:app --port=${PORT:-8000} --host=0.0.0.0