Merge branch 'main' into t3chguy/docker-avoid-tmp

This commit is contained in:
Michael Telatynski 2025-03-27 10:44:40 +00:00 committed by GitHub
commit 12463365d6

View File

@ -8,7 +8,10 @@ RUN apk add --no-cache jq
WORKDIR /app
COPY package.json yarn.lock ./
COPY ./$BUILD_CONTEXT/package.json ./$BUILD_CONTEXT/
# Copy the package.json files of all modules & packages to ensure the frozen workspace lockfile holds up
RUN --mount=type=bind,target=/docker-context \
cd /docker-context/; \
find . -path ./node_modules -prune -o -name "package.json" -mindepth 0 -maxdepth 4 -exec cp --parents "{}" /app/ \;
RUN yarn install --frozen-lockfile --ignore-scripts
COPY tsconfig.json ./
COPY ./$BUILD_CONTEXT ./$BUILD_CONTEXT