AlejandroCalizaya commited on
Commit
5e2fea0
·
1 Parent(s): 9c57563

chore: add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---------- Base image ----------
2
+ FROM python:3.10-slim
3
+
4
+ # ---------- Install dependencies ----------
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # ---------- Workdir ----------
10
+ WORKDIR /code
11
+
12
+ # ---------- Install Python libs ----------
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # ---------- Copy app ----------
17
+ COPY . .
18
+
19
+ # ---------- Expose port ----------
20
+ EXPOSE 7860
21
+
22
+ # ---------- Run FastAPI ----------
23
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]