Skip to content

Commit cd49a20

Browse files
committed
Add Dockerfile
1 parent 270d6e7 commit cd49a20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.10.6
2+
3+
WORKDIR /app
4+
5+
COPY . /app/
6+
7+
RUN python -m pip install --upgrade pip
8+
RUN pip install poetry
9+
RUN poetry config virtualenvs.create false
10+
RUN poetry install
11+
12+
13+
CMD ["uvicorn", "backend:app", "--workers", "1", "--host", "0.0.0.0", "--port", "8000"]
14+
15+
EXPOSE 8000

0 commit comments

Comments
 (0)