Spaces:
Runtime error
Runtime error
feat: added dockerfile (for task)
Browse files- Dockerfile +14 -0
- requirements.txt +4 -1
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
|
4 |
+
|
5 |
+
ARG GRADIO_SERVER_PORT=7860
|
6 |
+
ENV GRADIO_SERVER_PORT=${GRADIO_SERVER_PORT}
|
7 |
+
|
8 |
+
WORKDIR /workspace
|
9 |
+
|
10 |
+
COPY requirements.txt app.py demo.jpeg /workspace/
|
11 |
+
|
12 |
+
RUN pip install -r /workspace/requirements.txt
|
13 |
+
|
14 |
+
CMD ["python", "/workspace/app.py"]
|
requirements.txt
CHANGED
@@ -1 +1,4 @@
|
|
1 |
-
opencv-python
|
|
|
|
|
|
|
|
1 |
+
opencv-python
|
2 |
+
gradio
|
3 |
+
Pillow
|
4 |
+
numpy
|