SoDa12321 commited on
Commit
7f20d94
·
verified ·
1 Parent(s): ac21e13

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -16,20 +16,21 @@ RUN pip3 install --no-cache-dir scikit-build
16
  # Set MPLCONFIGDIR environment variable to a writable directory
17
  ENV MPLCONFIGDIR=/tmp/.config/matplotlib
18
 
19
- # Install Python dependencies without specifying versions for typing-extensions
20
  RUN pip3 install --no-cache-dir \
21
  tensorflow==2.13.1 \
22
  numpy==1.24.3 \
23
  opencv-python-headless \
24
  matplotlib \
25
- gradio==3.0.12
 
 
26
 
27
-
28
  # Expose the port the app runs on
29
  EXPOSE 7860
30
 
31
  # Copy the current directory contents into the container
32
- COPY . /app
33
 
34
  # Run the app.py script
35
  CMD ["python3", "app.py"]
 
16
  # Set MPLCONFIGDIR environment variable to a writable directory
17
  ENV MPLCONFIGDIR=/tmp/.config/matplotlib
18
 
19
+ # Install Python dependencies with specific versions
20
  RUN pip3 install --no-cache-dir \
21
  tensorflow==2.13.1 \
22
  numpy==1.24.3 \
23
  opencv-python-headless \
24
  matplotlib \
25
+ typing-extensions==4.8.0 \
26
+ gradio==3.0.12 \
27
+ python-dotenv==0.19.2 # Add this line to install python-dotenv
28
 
 
29
  # Expose the port the app runs on
30
  EXPOSE 7860
31
 
32
  # Copy the current directory contents into the container
33
+ COPY. /app
34
 
35
  # Run the app.py script
36
  CMD ["python3", "app.py"]