Skip to content

Commit 491b7ff

Browse files
authored
Add Dockerfile for Python application setup
1 parent d12d171 commit 491b7ff

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.11-slim
2+
3+
WORKDIR /app
4+
5+
RUN apt-get update && apt-get install -y build-essential libpq-dev
6+
7+
COPY app/requirements.txt .
8+
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
COPY app/ ./app
12+
13+
EXPOSE 8000
14+
15+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)