File size: 525 Bytes
861129c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use a suitable base image for Streamlit
FROM python:3.10.14-bookworm

# Set environment variables for Streamlit (if needed)
ENV STREAMLIT_SERVER_PORT=8501 

# Set working directory
WORKDIR /app

# Copy requirements file
COPY requirements.txt ./

# Install dependencies
RUN pip install --upgrade pip 
RUN pip install --no-cache-dir -r requirements.txt

# Copy app code
COPY . /app

# Expose the Streamlit port
EXPOSE 8501

# Run Streamlit app when container starts
CMD ["streamlit", "run", "app.py"]