remove bun cache from production image to optimize the space

This commit is contained in:
Moin Ahmad 2026-01-17 18:30:06 +05:30
parent 36b17d73eb
commit 8401feed21

View file

@ -98,7 +98,7 @@ ENV NODE_ENV="production"
WORKDIR /app
COPY --from=builder /app/package.json ./
RUN bun install --production --frozen-lockfile
RUN bun install --production --frozen-lockfile && rm -rf $HOME/.bun/install/cache
COPY --from=deps /deps/restic /usr/local/bin/restic
COPY --from=deps /deps/rclone /usr/local/bin/rclone