Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
formatting
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent 45c752d commit 24e29c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.10-slim

WORKDIR /usr/src/app

RUN adduser --disabled-password --gecos '' appuser
RUN adduser --disabled-password --gecos "" appuser

COPY . .

Expand All @@ -13,7 +13,6 @@ RUN pip install --no-cache-dir flask requests cryptography gunicorn
USER appuser

# Environment variable to specify the app script
ENV APP_SCRIPT="app:app" # app is the filename, app is the Flask instance

CMD ["sh", "-c", "gunicorn -w 4 -b 0.0.0.0:5000 $APP_SCRIPT"]
ENV APP_SCRIPT="app:app"

CMD ["sh", "-c", "gunicorn -w 4 -b 0.0.0.0:5000 $APP_SCRIPT"]

0 comments on commit 24e29c6

Please sign in to comment.