Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
change default command to start containers
  • Loading branch information
LucifersCircle committed Dec 7, 2024
1 parent f00c1e7 commit 0f7fcb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ WORKDIR /usr/src/app
RUN adduser --disabled-password --gecos '' appuser

COPY . .
RUN pip install --no-cache-dir flask requests cryptography


RUN chown -R appuser:appuser /usr/src/app

RUN pip install --no-cache-dir flask requests cryptography

USER appuser

CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]
# Default command (can be overridden in docker-compose.yml)
CMD ["python", "app.py"]

0 comments on commit 0f7fcb7

Please sign in to comment.