shingguy1 commited on
Commit
07b43fb
·
verified ·
1 Parent(s): 73fd73a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,9 +1,8 @@
1
- # Use Hugging Face's official Streamlit image
2
- FROM huggingface/streamlit-python:latest
3
 
4
  WORKDIR /app
5
 
6
- # Install image + ML dependencies
7
  RUN apt-get update && apt-get install -y \
8
  libjpeg-dev \
9
  zlib1g-dev \
@@ -14,9 +13,11 @@ RUN apt-get update && apt-get install -y \
14
  fonts-dejavu-core \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
 
20
  COPY src/streamlit_app.py .
21
 
22
  EXPOSE 8501
 
1
+ FROM python:3.10-slim
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system libraries required by Pillow and Streamlit uploader
6
  RUN apt-get update && apt-get install -y \
7
  libjpeg-dev \
8
  zlib1g-dev \
 
13
  fonts-dejavu-core \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Copy and install dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Copy your Streamlit app
21
  COPY src/streamlit_app.py .
22
 
23
  EXPOSE 8501