17 lines
No EOL
485 B
Docker
17 lines
No EOL
485 B
Docker
# Use an official Python runtime as a parent image
|
|
FROM python:3.12-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy the current directory contents into the container at /usr/src/app
|
|
COPY . .
|
|
|
|
# Install any needed packages specified in requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose Streamlit's default port
|
|
EXPOSE 8501
|
|
|
|
# Command to run the app
|
|
CMD ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] |