veltrixcode commited on
Commit
0f5f4a9
Β·
verified Β·
1 Parent(s): 82f6417

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -20
Dockerfile CHANGED
@@ -1,24 +1,7 @@
1
- # ── Base iimage ────────────────────────────────────────────────────────────────
2
  FROM python:3.11-slim
3
-
4
- # ── System deps ───────────────────────────────────────────────────────────────
5
- RUN apt-get update && apt-get install -y --no-install-recommends \
6
- gcc \
7
- libffi-dev \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # ── Working directory ─────────────────────────────────────────────────────────
11
  WORKDIR /app
12
-
13
- # ── Python deps ───────────────────────────────────────────────────────────────
14
  COPY requirements.txt .
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # ── App source ────────────────────────────────────────────────────────────────
18
- COPY app.py .
19
-
20
- # ── Expose port ───────────────────────────────────────────────────────────────
21
  EXPOSE 7860
22
-
23
- # ── Run ───────────────────────────────────────────────────────────────────────
24
- CMD ["python", "app.py"]
 
 
1
  FROM python:3.11-slim
 
 
 
 
 
 
 
 
2
  WORKDIR /app
 
 
3
  COPY requirements.txt .
4
+ RUN pip install -r requirements.txt
5
+ COPY main.py .
 
 
 
 
6
  EXPOSE 7860
7
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]