Fix Bad Gateway: Bind uvicorn to 0.0.0.0 explicitly

This commit is contained in:
2026-07-26 15:40:14 +03:00
parent 10106651a4
commit 06f3359de5
4 changed files with 22 additions and 26 deletions
+3 -3
View File
@@ -2,10 +2,10 @@ FROM python:3.10-slim
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn requests
RUN pip install --no-cache-dir fastapi uvicorn
COPY . .
COPY app.py .
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python", "app.py"]