diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 077967f..886cccd 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.1 +current_version = 0.0.0 commit = True tag = True diff --git a/.dockerignore b/.dockerignore index 57a6bf0..d01eab5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ venv -poetry.lock README.md diff --git a/Dockerfile b/Dockerfile index ddf28ae..8f69629 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,23 @@ # Use official Python image FROM python:3.9-slim +# Install curl and other needed tools for Poetry installation +RUN apt-get update && apt-get install -y curl + +# Install Poetry +RUN curl -sSL https://install.python-poetry.org | python3 - + +# Add Poetry to PATH +ENV PATH="/root/.local/bin:$PATH" + # Set the working directory in the container WORKDIR /app -# Copy requirements.txt -COPY requirements.txt . +# Copy pyproject.toml and poetry.lock to the container +COPY pyproject.toml poetry.lock* /app/ -# Install dependencies -RUN pip install --no-cache-dir -r requirements.txt +# Install the dependencies using Poetry (no venvs in Docker) +RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi # Copy the rest of the application code COPY . . diff --git a/pyproject.toml b/pyproject.toml index 178bd3f..824ae59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pipeline-heartbeat" -version = "0.0.1" +version = "0.0.0" description = "" authors = ["Yasin "] license = "MIT"