chore: update Dockerfile

This commit is contained in:
2024-08-29 22:54:58 +08:00
parent e258d9289e
commit 129294a8c7
1 file changed
+12 -5
+12 -5
View File
@@ -1,6 +1,13 @@
FROM ubuntu:latest FROM python:3.11-slim
EXPOSE 8000
WORKDIR . WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
RUN apt-get -y update && apt-get -y install python3-pip && pip3 install -r requirements.txt
CMD ["uvicorn", "src:create_app", "--host=0.0.0.0", "--port=8000"] EXPOSE 8000
CMD ["uvicorn", "src:create_app", "--host", "0.0.0.0", "--port", "8000"]