euler314 commited on
Commit
4cc6d78
·
verified ·
1 Parent(s): 32920cf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]