Mairaaa commited on
Commit
6ccf149
·
verified ·
1 Parent(s): 766a611

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -12
Dockerfile CHANGED
@@ -1,20 +1,28 @@
1
- FROM rust:slim
2
 
3
- # Install Python and dependencies
4
- RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
5
- RUN pip3 install --upgrade pip
 
 
 
 
 
 
 
 
 
6
 
7
  # Set the working directory
8
  WORKDIR /app
9
 
10
- # Copy requirements
11
- COPY requirements.txt .
 
 
12
 
13
- # Install dependencies
14
- RUN pip install -r requirements.txt
15
 
16
- # Copy project files
17
- COPY . .
18
-
19
- # Command to run your application
20
  CMD ["streamlit", "run", "app.py"]
 
1
+ FROM python:3.10
2
 
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ build-essential \
7
+ cargo \
8
+ libsm6 \
9
+ libxext6 \
10
+ libgl1-mesa-glx \
11
+ ffmpeg \
12
+ git \
13
+ git-lfs \
14
+ && rm -rf /var/lib/apt/lists/*
15
 
16
  # Set the working directory
17
  WORKDIR /app
18
 
19
+ # Copy requirements and install Python dependencies
20
+ COPY requirements.txt /tmp/requirements.txt
21
+ RUN pip install --no-cache-dir --upgrade pip && \
22
+ pip install --no-cache-dir -r /tmp/requirements.txt
23
 
24
+ # Expose the default Streamlit port
25
+ EXPOSE 8501
26
 
27
+ # Command to run the app
 
 
 
28
  CMD ["streamlit", "run", "app.py"]