File size: 651 Bytes
5865ef6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26ca557
5865ef6
 
 
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
# Use Python 3.10 to satisfy matplotlib>=3.10.0
FROM python:3.10-slim

# Set the working directory
WORKDIR /app

# Install required system packages
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    software-properties-common \
    git \
    && rm -rf /var/lib/apt/lists/*

# Copy files
COPY requirements.txt ./
COPY src/ ./src/

# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Create uploads directory with full permissions
RUN mkdir /app/uploads && chmod 777 /app/uploads

# Set the entrypoint to run your Streamlit app
CMD ["streamlit", "run", "src/streamlit_app.py"]