Sinketji commited on
Commit
9e8f455
·
verified ·
1 Parent(s): 0ac0e60

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /code
4
+
5
+ # System deps (optional but helps some wheels)
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ ca-certificates \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt /code/requirements.txt
11
+ RUN pip install --no-cache-dir -r /code/requirements.txt
12
+
13
+ COPY app /code/app
14
+
15
+ EXPOSE 7860
16
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]