Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
try re-adding variable for which script goes to which container
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent 40cc886 commit 9e70c37
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 @@ -12,4 +12,6 @@ RUN pip install --no-cache-dir flask requests cryptography gunicorn

USER appuser

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

CMD ["sh", "-c", "if [ \"$APP_SCRIPT\" = \"app:app\" ]; then gunicorn -w 4 -b 0.0.0.0:5000 $APP_SCRIPT; else python $APP_SCRIPT; fi"]

0 comments on commit 9e70c37

Please sign in to comment.