Skip to content

Commit c08f27b

Browse files
committed
chore: added dockerfile
1 parent d12aabf commit c08f27b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Use official Python slim image
2+
FROM python:3.11-slim
3+
4+
WORKDIR /app
5+
6+
# system deps
7+
RUN apt-get update && apt-get install -y --no-install-recommends \
8+
build-essential \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
# copy requirements then install
12+
COPY requirements.txt .
13+
RUN pip install --no-cache-dir -r requirements.txt
14+
15+
COPY . .
16+
17+
EXPOSE 8000
18+
19+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"]

0 commit comments

Comments
 (0)