From 2c0cf4144c7f173c9e8c1a349fdd4970acbfd9a8 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Tue, 25 Apr 2023 06:56:17 +0530 Subject: [PATCH] update dockerfile with gunicorn --- py_server/Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/py_server/Dockerfile b/py_server/Dockerfile index 193c7c8..14bfb30 100644 --- a/py_server/Dockerfile +++ b/py_server/Dockerfile @@ -1,15 +1,11 @@ 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 - -RUN pip install --no-cache-dir -U pip +ENV PORT=5000 COPY requirements.txt . RUN pip install -r requirements.txt -COPY . . - -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] \ No newline at end of file +COPY . . \ No newline at end of file