dockerized

This commit is contained in:
randogoth 2025-02-17 10:17:48 +02:00
parent e4036420a0
commit ccfbbe3cdb

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
# 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"]