Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
install deps as root
  • Loading branch information
LucifersCircle committed Dec 5, 2024
1 parent 5d2625c commit d44eeb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ WORKDIR /usr/src/app

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

RUN chown -R appuser /usr/src/app
COPY . .
RUN pip install --no-cache-dir flask requests cryptography

USER appuser

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

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

CMD ["flask", "run", "--host=0.0.0.0"]
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]

0 comments on commit d44eeb0

Please sign in to comment.