From 88d64061113b9a17973cfd1d61c30302d2e1d280 Mon Sep 17 00:00:00 2001 From: Tim Hansen Date: Tue, 13 Aug 2024 15:21:09 -0600 Subject: [PATCH] Add note about bin entries for multi-stage Docker build Signed-off-by: Tim Hansen --- docs/deployment/docker.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/deployment/docker.md b/docs/deployment/docker.md index d47cb248f8..897498d28f 100644 --- a/docs/deployment/docker.md +++ b/docs/deployment/docker.md @@ -246,6 +246,9 @@ WORKDIR /app # Copy the install dependencies from the build stage and context COPY --from=build --chown=node:node /app/yarn.lock /app/package.json /app/packages/backend/dist/skeleton/ ./ +# Note: The skeleton bundle only includes package.json files -- if your app has +# plugins that define a `bin` export, the bin files need to be copied as well to +# be linked in node_modules/.bin during yarn install. RUN --mount=type=cache,target=/home/node/.cache/yarn,sharing=locked,uid=1000,gid=1000 \ yarn install --frozen-lockfile --production --network-timeout 600000