Anupam251272 commited on
Commit
6fffbe2
·
verified ·
1 Parent(s): b6541f3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim-bookworm
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy requirements file
7
+ COPY requirements.txt .
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy the application code
13
+ COPY . .
14
+
15
+ # Set environment variables (if needed - adjust as required)
16
+ ENV GRADIO_SERVER_PORT=7860
17
+ ENV GRADIO_SERVER_NAME=0.0.0.0
18
+
19
+ # Expose the Gradio port
20
+ EXPOSE 7860
21
+
22
+ # Command to run the Gradio app
23
+ CMD ["python", "app.py"]