From 7376f27df17a6e875955e5d5ae6802dfac4ffffe Mon Sep 17 00:00:00 2001 From: Vishal N Date: Sat, 13 Jan 2024 01:45:07 +0530 Subject: [PATCH] Fix gunicorn issue in docker --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 139e606..4bd8e85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.12.1-slim AS requirements-image ENV PYTHONUNBUFFERED=1 -RUN ["pip","install","poetry>=1.7,<1.8","--upgrade"] +RUN ["pip","install","poetry>=1.7,<1.8"] RUN ["poetry","self","add","poetry-plugin-export"] @@ -20,6 +20,8 @@ ENV PYTHONUNBUFFERED=1 COPY --from=requirements-image /export/requirements.txt requirements.txt +RUN ["pip","install","gunicorn"] + RUN ["useradd","--create-home","cyscom-docker"] USER cyscom-docker