update dockerfile with gunicorn
This commit is contained in:
parent
71a4c89afa
commit
2c0cf4144c
@ -1,15 +1,11 @@
|
|||||||
FROM python:3.9.16
|
FROM python:3.9.16
|
||||||
|
|
||||||
WORKDIR /app
|
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y wget unzip libgconf-2-4 libnss3 libcurl4
|
ENV PORT=5000
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -U pip
|
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
|
Loading…
x
Reference in New Issue
Block a user