Archived
chore: update Dockerfile
This commit is contained in:
1 file changed
+12
-5
+12
-5
@@ -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"]
|
||||||
Reference in New Issue
Block a user