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