Skip to content

Commit 200cd0b

Browse files
committed
add dockerfile for backend flask server
1 parent 1551cdf commit 200cd0b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

server/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.9.6-slim
2+
3+
ENV PORT=8000
4+
5+
WORKDIR /app
6+
7+
COPY requirements.txt .
8+
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
COPY . .
11+
12+
EXPOSE 8000
13+
14+
CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:${PORT} server:app"]

0 commit comments

Comments
 (0)