Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,13 @@ FROM python:3.9
|
|
| 7 |
# Set the working directory in the container
|
| 8 |
WORKDIR /code
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy the requirements file into the container at /code
|
| 11 |
COPY code/requirements.txt /code/
|
| 12 |
|
|
@@ -22,3 +29,4 @@ COPY . .
|
|
| 22 |
# Command to run the application
|
| 23 |
CMD ["python", "code/demo.py"]
|
| 24 |
|
|
|
|
|
|
| 7 |
# Set the working directory in the container
|
| 8 |
WORKDIR /code
|
| 9 |
|
| 10 |
+
# Set an environment variable for Matplotlib cache
|
| 11 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
| 12 |
+
|
| 13 |
+
# Install libGL for OpenCV
|
| 14 |
+
RUN apt-get update && apt-get install -y \
|
| 15 |
+
libgl1-mesa-glx
|
| 16 |
+
|
| 17 |
# Copy the requirements file into the container at /code
|
| 18 |
COPY code/requirements.txt /code/
|
| 19 |
|
|
|
|
| 29 |
# Command to run the application
|
| 30 |
CMD ["python", "code/demo.py"]
|
| 31 |
|
| 32 |
+
|