tao-shen commited on
Commit
e76384d
·
verified ·
1 Parent(s): 1760db0

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -16
Dockerfile CHANGED
@@ -1,29 +1,16 @@
1
- # Use lightweight Python base image
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
- # Install system dependencies
7
- RUN apt-get update && apt-get install -y \
8
- git \
9
- git-lfs \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy requirements first for better caching
13
  COPY requirements.txt .
 
14
 
15
- # Install Python dependencies
16
- RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # Copy application code
19
  COPY . .
20
 
21
  # Set environment variables
22
  ENV PYTHONUNBUFFERED=1
23
  ENV GRADIO_SERVER_NAME="0.0.0.0"
 
24
 
25
- # Create necessary directories
26
- RUN mkdir -p /data/logs /data/memory
27
-
28
- # FIX: Point to the correct entry file (app.py)
29
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt -q
7
 
 
 
 
 
8
  COPY . .
9
 
10
  # Set environment variables
11
  ENV PYTHONUNBUFFERED=1
12
  ENV GRADIO_SERVER_NAME="0.0.0.0"
13
+ ENV GRADIO_SERVER_PORT="7860"
14
 
15
+ # Run the application
 
 
 
16
  CMD ["python", "app.py"]