Skip to content

Commit

Permalink
docker: Add prod dockerfile for api
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrek14 committed Feb 8, 2024
1 parent 06c2081 commit 18c6262
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker/prod.api.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM debian:bullseye-slim

RUN apt update && apt -y install python3 python3-pip openssh-client

WORKDIR /api

COPY ./api/pyproject.toml /api/pyproject.toml

RUN python3 -m pip install --upgrade pip
RUN pip install --no-cache-dir .
RUN pip install .[dev]

COPY ./api /api

EXPOSE 8555

CMD ["uvicorn", "main:app","--proxy-headers", "--reload", "--host", "0.0.0.0", "--port", "8555"]

0 comments on commit 18c6262

Please sign in to comment.