promptsai commited on
Commit
d899e9a
·
verified ·
1 Parent(s): dcfbaff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
+