evildeity commited on
Commit
3c385ed
·
verified ·
1 Parent(s): 2191baf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -4,7 +4,6 @@ FROM python:3.10
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Install the missing dependency for OpenCV
8
  # Install essential dependencies for OpenCV
9
  RUN apt-get update && apt-get install -y \
10
  libgl1 \
@@ -15,11 +14,11 @@ RUN apt-get update && apt-get install -y \
15
  # Copy all project files into the Docker image
16
  COPY . /app
17
 
18
- # Install all dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # The app listens on port 7860 on Hugging Face
22
  EXPOSE 7860
23
 
24
  # Command to run the Streamlit app directly
25
- CMD ["streamlit", "run", "model.py", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false"]
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
 
7
  # Install essential dependencies for OpenCV
8
  RUN apt-get update && apt-get install -y \
9
  libgl1 \
 
14
  # Copy all project files into the Docker image
15
  COPY . /app
16
 
17
+ # Install all Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Expose the port your app will run on in Hugging Face
21
  EXPOSE 7860
22
 
23
  # Command to run the Streamlit app directly
24
+ CMD ["streamlit", "run", "model.py", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false"]