shiue20 commited on
Commit
538a324
·
verified ·
1 Parent(s): abc3605

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -5
Dockerfile CHANGED
@@ -1,9 +1,20 @@
1
  FROM python:3.10-slim
2
 
3
- RUN pip install --upgrade pip
4
- RUN pip install mercury==2.4.3
5
-
6
- COPY . /code
7
  WORKDIR /code
8
 
9
- CMD ["mercury", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.10-slim
2
 
 
 
 
 
3
  WORKDIR /code
4
 
5
+ # System dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1-mesa-glx \
8
+ libglib2.0-0 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Python dependencies
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # App source code
16
+ COPY . .
17
+
18
+ # Expose for HF Spaces
19
+ ENV PORT 7860
20
+ CMD ["python", "app.py"]