File size: 555 Bytes
51bc833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official Python image from the Docker Hub
FROM python:3.9-slim

# Set the working directory within the container
WORKDIR /app

# Copy the requirements.txt file into the container
COPY ./requirements.txt /app/requirements.txt

# Install the Python dependencies
RUN pip install -r /app/requirements.txt

# Copy your Streamlit application code into the container
COPY ./app.py /app/app.py

# Expose port 7860 for the Streamlit application
EXPOSE 7860

# Command to start the Streamlit app
CMD ["streamlit", "run", "--server.port", "7860", "app.py"]