pm: fixes for global installs in docker (#14896)

This commit is contained in:
Meghan Denny
2025-01-20 23:13:47 -08:00
committed by GitHub
parent 27d9cfaf79
commit c37c5bfc03
4 changed files with 8 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ ARG BUN_INSTALL_BIN=/usr/local/bin
ENV BUN_INSTALL_BIN=${BUN_INSTALL_BIN}
COPY --from=build /usr/local/bin/bun /usr/local/bin/
RUN mkdir -p /usr/local/bun-node-fallback-bin && ln -s /usr/local/bin/bun /usr/local/bun-node-fallback-bin/node
ENV PATH "${PATH}:/usr/local/bun-node-fallback-bin"
# Temporarily use the `build`-stage image binaries to create a symlink:
RUN --mount=type=bind,from=build,source=/usr/bin,target=/usr/bin \