Skip to content

Commit

Permalink
fix: Dockerfile and reset version
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinmiran committed Oct 9, 2024
1 parent 13784d0 commit d1a2c1f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.0.1
current_version = 0.0.0
commit = True
tag = True

Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
venv
poetry.lock
README.md
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeline-heartbeat"
version = "0.0.1"
version = "0.0.0"
description = ""
authors = ["Yasin <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d1a2c1f

Please sign in to comment.