Merge branch 'main' into t3chguy/docker-avoid-tmp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user