Tas01 commited on
Commit
5126e31
·
verified ·
1 Parent(s): 42c6db6

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install minimal system dependencies
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Copy and install requirements
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy application
14
+ COPY app.py .
15
+
16
+ # Set environment variables for Gradio
17
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
18
+ ENV GRADIO_SERVER_PORT=7860
19
+
20
+ # Expose port
21
+ EXPOSE 7860
22
+
23
+ # Run the app
24
+ CMD ["python", "app.py"]