Skip to content

Commit d305b42

Browse files
committed
create Dockerfile
1 parent 34e3002 commit d305b42

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.10.9-slim-bullseye as base
2+
LABEL maintainer="nvo87@fands.dev"
3+
4+
ENV PYTHONUNBUFFERED 1
5+
6+
WORKDIR /code
7+
8+
COPY ./requirements.txt /code/requirements.txt
9+
10+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11+
12+
COPY ./src /code/src
13+
14+
CMD ["uvicorn", "src.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]

0 commit comments

Comments
 (0)