Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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 /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Make port 8501 available to the world outside this container (for Streamlit)
EXPOSE 8501

# Define environment variable for Streamlit to run on the specified host
ENV STREAMLIT_SERVER_HEADLESS="true"
ENV STREAMLIT_SERVER_PORT="8501"
ENV STREAMLIT_SERVER_ENABLECORS="false"
ENV STREAMLIT_SERVER_ENABLEWEBBROWSER="false"

# Run your Python script when the container launches
CMD ["streamlit", "run", "ML_Evaluation.py"]
Loading