Skip to content

Commit

Permalink
feat - add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilevk committed May 6, 2024
1 parent 57194ae commit 0498d00
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.11.8-slim

WORKDIR /

RUN pip install poetry

COPY ./poetry.lock ./poetry.lock
COPY ./pyproject.toml ./pyproject.toml

RUN poetry export -f requirements.txt --output requirements.txt --without-hashes

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

COPY ./app /app
COPY ./entrypoint.sh /entrypoint.sh

ENTRYPOINT ["bash", "./entrypoint.sh"]
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uvicorn app.main:app --host 0.0.0.0 --port $PORT

0 comments on commit 0498d00

Please sign in to comment.