triton7777 commited on
Commit
c638252
·
verified ·
1 Parent(s): ad51599

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use OpenMMLab MMSegmentation image which already includes mmcv with compiled ops
2
+ FROM openmmlab/mmsegmentation:1.2.2
3
+
4
+ # Install UI/runtime dependencies
5
+ RUN pip install --no-cache-dir -U pip && \
6
+ pip install --no-cache-dir \
7
+ gradio==4.29.0 \
8
+ huggingface-hub==0.22.2 \
9
+ pillow>=10.0.0 \
10
+ opencv-python-headless==4.8.1.78
11
+
12
+ # App code
13
+ WORKDIR /app
14
+ COPY . .
15
+
16
+ # Expose Gradio default port
17
+ EXPOSE 7860
18
+
19
+ # Run the app
20
+ CMD ["python", "app.py"]