Skip to content

Commit

Permalink
Updated Dockerfile (#36)
Browse files Browse the repository at this point in the history
* Updated Dockerfile

* Forgot the --chown=sbl:sbl
  • Loading branch information
jcadam14 authored Aug 8, 2024
1 parent d72ffc8 commit d764e9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM ghcr.io/cfpb/regtech/sbl/python-alpine:3.12

ENV UVICORN_LOG_LEVEL=info

WORKDIR /usr/app/src

RUN pip install poetry

COPY poetry.lock pyproject.toml log-config.yml ./
COPY --chown=sbl:sbl poetry.lock pyproject.toml log-config.yml ./

RUN poetry config virtualenvs.create false
RUN poetry install

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

EXPOSE 8765

USER sbl

CMD ["uvicorn", "regtech_mail_api.api:app", "--host", "0.0.0.0", "--port", "8765", "--log-config", "log-config.yml"]
CMD uvicorn regtech_mail_api.api:app --host 0.0.0.0 --port 8765 --log-config log-config.yml --log-level $UVICORN_LOG_LEVEL

0 comments on commit d764e9d

Please sign in to comment.