Skip to content

Commit

Permalink
chore: remove cache from wheel build in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Sep 26, 2024
1 parent a5e1855 commit 13ac818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
!src
!requirements/*.txt
!README.rst
!LICENSE
!pyproject.toml
!container/start.sh
!container/healthcheck.py
Expand Down
4 changes: 2 additions & 2 deletions container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \

COPY . /build/karapace-repo
WORKDIR /build/karapace-repo
RUN --mount=type=cache,target=/root/.cache/pip \
RUN \
if [ -z "${KARAPACE_VERSION}" ]; then \
PRETEND_VERSION="$(python -c 'from src.karapace import version; print(version.__version__)')"; \
else \
PRETEND_VERSION=$KARAPACE_VERSION; \
fi; \
SETUPTOOLS_SCM_PRETEND_VERSION=$PRETEND_VERSION python3 -m pip install --no-deps .
SETUPTOOLS_SCM_PRETEND_VERSION=$PRETEND_VERSION python3 -m pip install -v --no-deps .

# Karapace image, i.e. production.
FROM python:3.10.11-slim-bullseye AS karapace
Expand Down

0 comments on commit 13ac818

Please sign in to comment.