diff --git a/Dockerfile b/Dockerfile index 9882a236..e6a6fb4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,8 @@ WORKDIR /app # Install Application COPY pyproject.toml . COPY README.md . -RUN sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && \ +ARG VERSION=0.0.0 +RUN sed -i "s/dynamic = \\[\"version\"\\]/version = \"$VERSION\"/" pyproject.toml && \ pip install --no-cache-dir . # Copy Source Code diff --git a/prod.Dockerfile b/prod.Dockerfile index 693a3a8b..8b21cb66 100644 --- a/prod.Dockerfile +++ b/prod.Dockerfile @@ -11,7 +11,8 @@ WORKDIR /app # Install Application COPY pyproject.toml . COPY README.md . -RUN sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && \ +ARG VERSION=0.0.0 +RUN sed -i "s/dynamic = \\[\"version\"\\]/version = \"$VERSION\"/" pyproject.toml && \ TMPDIR=/home/cache/ pip install --cache-dir=/home/cache/ -e . # Copy Source Code