samithcs commited on
Commit
f45db99
·
verified ·
1 Parent(s): b2bc05a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,9 +1,7 @@
1
  FROM python:3.11-slim
2
 
3
-
4
  WORKDIR /app
5
 
6
-
7
  RUN apt-get update && apt-get install -y \
8
  libgl1 \
9
  libglib2.0-0 \
@@ -12,14 +10,14 @@ RUN apt-get update && apt-get install -y \
12
  curl \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
-
16
  COPY . .
17
 
18
-
 
19
  RUN pip install --upgrade pip setuptools wheel
20
- RUN pip install .
21
 
22
  EXPOSE 7860
23
 
24
-
25
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  libgl1 \
7
  libglib2.0-0 \
 
10
  curl \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy all project files
14
  COPY . .
15
 
16
+ # Install dependencies directly from pyproject.toml
17
+ # Easier approach: install the packages explicitly (same as in pyproject)
18
  RUN pip install --upgrade pip setuptools wheel
19
+ RUN pip install numpy opencv-python-headless pillow scipy streamlit tensorflow
20
 
21
  EXPOSE 7860
22
 
 
23
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]