Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
add sh -c
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent 6aa01de commit 45c752d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN pip install --no-cache-dir flask requests cryptography gunicorn

USER appuser

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

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

0 comments on commit 45c752d

Please sign in to comment.