mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 16:26:17 +00:00
include docker provenance (#13324)
* add provenance and attestations * improve caching
This commit is contained in:
1 parent
89e0d734d8
commit
78b6dd83a4
2 files changed
+13
-5
No files matched your search
@@ -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 && \
|
||||
|
||||
Reference in new issue
Block a user