felixbet commited on
Commit
5ab3ad8
·
verified ·
1 Parent(s): 6c63d36

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,21 +1,17 @@
1
  FROM python:3.10-slim
2
-
3
  WORKDIR /app
4
 
5
- # system deps for curl + tar
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- curl ca-certificates && rm -rf /var/lib/apt/lists/*
8
 
9
- # python deps
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # app files
14
  COPY app.py start.sh ./
15
  RUN chmod +x /app/start.sh
16
 
17
  ENV PORT=7860
18
  EXPOSE 7860
19
 
20
- # ✅ run start.sh (downloads/extracts, then launches uvicorn)
21
  CMD ["bash", "/app/start.sh"]
 
1
  FROM python:3.10-slim
 
2
  WORKDIR /app
3
 
4
+ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \
5
+ && rm -rf /var/lib/apt/lists/*
 
6
 
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
 
10
  COPY app.py start.sh ./
11
  RUN chmod +x /app/start.sh
12
 
13
  ENV PORT=7860
14
  EXPOSE 7860
15
 
16
+ # ✅ This guarantees we download & extract before importing app.py
17
  CMD ["bash", "/app/start.sh"]