Skip to content

Commit

Permalink
Fix gunicorn issue in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnandagopal committed Jan 12, 2024
1 parent 017fca5 commit 7376f27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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
Expand Down

0 comments on commit 7376f27

Please sign in to comment.