Update Dockerfile to include host and port options for uvicorn

This commit is contained in:
sHa
2024-03-12 21:59:37 +00:00
parent 4476d5bae9
commit 66c4b34cc8

View File

@@ -5,8 +5,9 @@ ENV PYTHONPATH=/app
COPY ./requirements.txt ./requirements.txt COPY ./requirements.txt ./requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
CMD ["uvicorn","app:app","--reload"] CMD ["uvicorn", "app:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]