euler314 commited on
Commit
9446526
·
verified ·
1 Parent(s): e128a8c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -12
Dockerfile CHANGED
@@ -1,26 +1,25 @@
1
  # Dockerfile
2
 
3
- # Use official Python slim image
4
  FROM python:3.9-slim
5
 
6
- # Set working directory
7
- WORKDIR /app
8
-
9
- # Install system dependencies (if any needed by speedtest-cli)
10
- RUN apt-get update && \
11
- apt-get install -y --no-install-recommends \
12
- curl \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Copy requirements and install Python dependencies
 
 
 
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Copy application code
20
  COPY app.py .
21
 
22
- # Expose Gradio’s default port
23
  EXPOSE 7860
24
 
25
- # Run the app
26
  CMD ["python", "app.py"]
 
1
  # Dockerfile
2
 
3
+ # Base image: lightweight Python 3.9
4
  FROM python:3.9-slim
5
 
6
+ # Install system packages if needed (none strictly required here)
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ gcc \
 
 
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Set work directory
12
+ WORKDIR /app
13
+
14
+ # Copy requirements and install
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy our application code
19
  COPY app.py .
20
 
21
+ # Expose port 7860 (Gradio + Flask)
22
  EXPOSE 7860
23
 
24
+ # Launch the combined Flask + Gradio server
25
  CMD ["python", "app.py"]