From aba2a907dae8099dd8e0fc8678948aed6fb0d749 Mon Sep 17 00:00:00 2001 From: "michael.rode" Date: Thu, 1 Jul 2021 00:18:41 -0500 Subject: [PATCH] Keep line that states why we should copy the repo skeleton first Signed-off-by: michael.rode --- docs/deployment/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment/docker.md b/docs/deployment/docker.md index 1221ac1f87..e542b02ebf 100644 --- a/docs/deployment/docker.md +++ b/docs/deployment/docker.md @@ -59,7 +59,7 @@ Once the host build is complete, we are ready to build our image. The following FROM node:14-buster-slim WORKDIR /app - +# Copy repo skeleton first, to avoid unnecessary docker cache invalidation. # The skeleton contains the package.json of each package in the monorepo, # and along with yarn.lock and the root package.json, that's enough to run yarn install. COPY yarn.lock package.json packages/backend/dist/skeleton.tar.gz ./