Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- 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"]
|