Skip to content

Commit

Permalink
run as non-root (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
praktiskt authored Aug 3, 2024
1 parent 5449e98 commit 55df898
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

RUN useradd -u 1001 tc
USER 1001

COPY ./trading_calendar /code/trading_calendar

CMD ["uvicorn", "trading_calendar.main:app", "--host", "0.0.0.0", "--port", "80"]
Expand Down

0 comments on commit 55df898

Please sign in to comment.