Wills17 commited on
Commit
beddec4
·
verified ·
1 Parent(s): c381b38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -12
Dockerfile CHANGED
@@ -1,22 +1,14 @@
1
- # Base image
2
  FROM python:3.10-slim
3
 
4
- # Set working directory
5
- WORKDIR /app
6
 
7
- # Copy files
8
  COPY . /app
9
 
10
- # Install system dependencies
11
- RUN apt-get update && apt-get install -y \
12
- libglib2.0-0 libsm6 libxrender1 libxext6 \
13
- && rm -rf /var/lib/apt/lists/*
14
-
15
- # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Expose port
19
  EXPOSE 7860
20
 
21
- # Run Flask app
22
  CMD ["python", "flask_app.py"]
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Allow outbound internet (HF disables it only for default SDKs)
4
+ ENV HF_HUB_ENABLE_HF_TRANSFER=1
5
 
6
+ WORKDIR /app
7
  COPY . /app
8
 
 
 
 
 
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Expose the Flask port (7860 for HF)
12
  EXPOSE 7860
13
 
 
14
  CMD ["python", "flask_app.py"]