-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a chown for sbl to Dockerfile (#201)
Closes #198
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |