File size: 624 Bytes
4ffe93b
 
16fc201
4ffe93b
 
16fc201
4ffe93b
 
 
16fc201
4ffe93b
 
 
16fc201
4ffe93b
 
65b8b59
4ffe93b
16fc201
 
4ffe93b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use official Python base image
FROM python:3.10-slim

# Set workdir to /src
WORKDIR /src

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

# Create the .streamlit config directory and copy config.toml
RUN mkdir -p /root/.streamlit
COPY .streamlit/config.toml /root/.streamlit/config.toml

# Copy entire src directory contents into container
COPY src/ /src/

# Expose streamlit port
EXPOSE 8501

# Command to run your app 
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]