diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cbae235 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.9-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 8501 + +CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] \ No newline at end of file diff --git a/README.md b/README.md index facb5c2..f1399b4 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,12 @@ A Streamlit-based platform to explore basic ML models interactively. ```bash pip install -r requirements.txt streamlit run app.py + +``` + +## Running with Docker +```bash +docker build -t ml-simulator . +docker run -p 8501:8501 ml-simulator +``` +Then open your browser to `http://localhost:8501`.