File size: 730 Bytes
3a9ef45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Dockerfile
FROM python:3.11.8-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    portaudio19-dev \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy and install Python dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Install gdown so we can download from Google Drive
RUN pip install gdown

RUN gdown "https://drive.google.com/uc?id=1suMJ0qgG5-oLhm_Jmyy7sst_myuiI2zg" -O random_forest_model.pkl

# Copy your application code
COPY . /app

# Expose Streamlit port
EXPOSE 8501

# Run the app
CMD ["sh", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]