[tool.poetry]
name = "ml-project"
version = "0.1.0"
description = "ML project with scikit-learn"
authors = ["Your Name <your.email@example.com>"]
[tool.poetry.dependencies]
python = "^3.11"
scikit-learn = "2.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
ENV POETRY_HOME=/opt/poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="${POETRY_HOME}/bin:${PATH}"
RUN poetry config virtualenvs.create false
WORKDIR /app
COPY pyproject.toml .
RUN poetry install --no-dev
CMD ["python3"]