fix(Dockerfile): Clear bun package manager cache before installation (#4659)

This commit is contained in:
Alireza 2025-01-08 14:38:39 -05:00 committed by GitHub
parent 60547b507f
commit 5f6f528fbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,6 +61,8 @@ ENV PATH=/usr/src/app/node_modules/.bin:$PATH
COPY package.json yarn.lock preinstall.js lerna.json ./
COPY --parents ./addOns/package.json ./addOns/*/*/package.json ./extensions/*/package.json ./modes/*/package.json ./platform/*/package.json ./
# Run the install before copying the rest of the files
RUN bun pm cache rm
RUN bun install
# Copy the local directory
COPY --link --exclude=yarn.lock --exclude=package.json --exclude=Dockerfile . .