abdullahmubeen10 commited on
Commit
7f9cc0e
·
verified ·
1 Parent(s): 015d476

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -9
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
5
- # 1. Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  libgl1 \
8
  libglib2.0-0 \
@@ -11,21 +10,14 @@ RUN apt-get update && apt-get install -y \
11
  git \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # 2. Copy dependency files first for caching
15
  COPY requirements.txt ./
16
-
17
- # 3. Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # 4. Copy the rest of the source code
21
  COPY src/ ./src/
22
  COPY assets/ ./assets/
 
23
 
24
- # 5. Expose Streamlit port
25
  EXPOSE 8501
26
 
27
- # 6. Healthcheck endpoint for Streamlit
28
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
29
-
30
- # 7. Default command
31
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  libgl1 \
7
  libglib2.0-0 \
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
13
  COPY requirements.txt ./
 
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY src/ ./src/
17
  COPY assets/ ./assets/
18
+ COPY best_car.pt ./
19
 
 
20
  EXPOSE 8501
21
 
 
22
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
 
 
23
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]