Bc-AI commited on
Commit
a8a7b99
·
verified ·
1 Parent(s): 40adb77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Minimal deps (no build tools needed since we skip compile)
6
  RUN apt-get update && apt-get install -y \
7
  curl \
8
  && rm -rf /var/lib/apt/lists/*
@@ -10,8 +9,6 @@ RUN apt-get update && apt-get install -y \
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Don't install C++ compiler — we're not using torch.compile anyway
14
-
15
  RUN useradd -m -u 1000 user
16
  USER user
17
 
@@ -21,6 +18,7 @@ ENV HOME=/home/user \
21
 
22
  WORKDIR /home/user/app
23
  COPY --chown=user app.py .
 
24
 
25
  EXPOSE 7860
26
 
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  curl \
7
  && rm -rf /var/lib/apt/lists/*
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
 
 
12
  RUN useradd -m -u 1000 user
13
  USER user
14
 
 
18
 
19
  WORKDIR /home/user/app
20
  COPY --chown=user app.py .
21
+ COPY --chown=user index.html .
22
 
23
  EXPOSE 7860
24