Skip to content

Commit

Permalink
Added a chown for sbl to Dockerfile (#201)
Browse files Browse the repository at this point in the history
Closes #198
  • Loading branch information
jcadam14 authored Jul 31, 2024
1 parent 4df03d7 commit f0aa0a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM ghcr.io/cfpb/regtech/sbl/python-alpine:3.12

ENV UVICORN_LOG_LEVEL=info

WORKDIR /usr/app

RUN pip install poetry

COPY poetry.lock pyproject.toml alembic.ini ./
COPY --chown=sbl:sbl poetry.lock pyproject.toml alembic.ini ./

RUN poetry config virtualenvs.create false
RUN poetry install --no-root

COPY ./src ./src
COPY ./db_revisions ./db_revisions
COPY --chown=sbl:sbl ./src ./src
COPY --chown=sbl:sbl ./db_revisions ./db_revisions

WORKDIR /usr/app/src

EXPOSE 8888

USER sbl

CMD ["uvicorn", "regtech_user_fi_management.main:app", "--host", "0.0.0.0", "--port", "8888", "--log-config", "log-config.yml"]
CMD uvicorn regtech_user_fi_management.main:app --host 0.0.0.0 --port 8888 --log-config log-config.yml --log-level $UVICORN_LOG_LEVEL --timeout-keep-alive 65

0 comments on commit f0aa0a7

Please sign in to comment.