File size: 619 Bytes
cff19c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Base image: lightweight Python 3.9
FROM python:3.9-slim-buster

# Set container working directory
WORKDIR /app

# Copy project files into the container
COPY . /app

# Environment variable for Streamlit configuration
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit

# Create the Streamlit configuration directory
RUN mkdir -p ${STREAMLIT_CONFIG_DIR}

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

# Default command to run the Streamlit app
CMD ["streamlit", "run", "app.py", \
     "--server.port=8501", \
     "--server.address=0.0.0.0", \
     "--server.enableXsrfProtection=false"]