From ccfbbe3cdb3dac8bcdbf23959b63d3db353599db Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 17 Feb 2025 10:17:48 +0200 Subject: [PATCH] dockerized --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6718d58 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file