dkescape commited on
Commit
cda6b5b
·
verified ·
1 Parent(s): 254203c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy application files
7
+ COPY . /app
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir gradio modelscope gradio-imageslider opencv-python-headless
11
+
12
+ # Expose Gradio's default port
13
+ EXPOSE 7860
14
+
15
+ # Set environment variable for Gradio
16
+ ENV GRADIO_SERVER_NAME=0.0.0.0
17
+
18
+ # Run the application
19
+ CMD ["python", "app.py"]