include docker provenance (#13324)

* add provenance and attestations

* improve caching
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-11-19 08:51:46 +11:00
1 parent 89e0d734d8
commit 78b6dd83a4
2 files changed
+13 -5

No files matched your search

+4 -4
View File
@@ -100,10 +100,6 @@ ENTRYPOINT ["/bin/bash", "./init.sh"]
# Multi-stage build to compile project requirements
FROM inventree_base AS builder_stage
# Copy source files
COPY src ${INVENTREE_HOME}/src
COPY tasks.py ${INVENTREE_HOME}/tasks.py
# Install backend build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config build-essential \
@@ -118,6 +114,10 @@ RUN pip install --user --require-hashes -r base_requirements.txt --no-cache-dir
pip cache purge && \
rm -rf /root/.cache/pip
# Copy source files
COPY src ${INVENTREE_HOME}/src
COPY tasks.py ${INVENTREE_HOME}/tasks.py
# Install frontend build dependencies
# pinned to v0.40.5
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/1889911f0841e669de0be5bd02c737a3f1fd20fa/install.sh | bash && \