Skip to content

Commit 1bb6577

Browse files
authored
Create Dockerfile.prod
1 parent 2aa0b29 commit 1bb6577

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/Dockerfile.prod

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.12-slim
2+
3+
ENV PYTHONUNBUFFERED True
4+
5+
# set the working directory
6+
WORKDIR /usr/src/app
7+
8+
# install dependencies
9+
COPY ./requirements.txt ./
10+
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# copy src code
14+
COPY ./src ./src
15+
16+
EXPOSE 4000
17+
18+
# start the server
19+
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "4000", "--proxy-headers"]

0 commit comments

Comments
 (0)