File size: 462 Bytes
ffe40b4
 
 
 
 
feca9d2
ffe40b4
 
 
 
 
 
 
 
 
 
 
feca9d2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9

# Set working directory
WORKDIR /app

# Copy all files to /app
COPY . /app

# Create and set permissions for .streamlit directory
RUN mkdir -p /app/.streamlit && chmod -R u+rw /app/.streamlit

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

# Expose Streamlit port
EXPOSE 8501

# Run Streamlit app from src subdirectory
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]