Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
try with variable
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent 0f7fcb7 commit e549f8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ RUN pip install --no-cache-dir flask requests cryptography

USER appuser

# Default command (can be overridden in docker-compose.yml)
CMD ["python", "app.py"]
# Use an environment variable to decide which script to run
ENV APP_SCRIPT="app.py"
CMD ["sh", "-c", "python $APP_SCRIPT"]

0 comments on commit e549f8f

Please sign in to comment.