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 ./