From 5de27b842fb5b5a5e792a35216f04762d638f9d7 Mon Sep 17 00:00:00 2001 From: "michael.rode" Date: Wed, 30 Jun 2021 23:53:16 -0500 Subject: [PATCH] Update Docker host build documentation with updated default Dockerfile Signed-off-by: michael.rode --- docs/deployment/docker.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/deployment/docker.md b/docs/deployment/docker.md index 095a4989d8..1221ac1f87 100644 --- a/docs/deployment/docker.md +++ b/docs/deployment/docker.md @@ -60,15 +60,16 @@ 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. -ADD yarn.lock package.json packages/backend/dist/skeleton.tar.gz ./ +COPY yarn.lock package.json packages/backend/dist/skeleton.tar.gz ./ +RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz RUN yarn install --frozen-lockfile --production --network-timeout 300000 && rm -rf "$(yarn cache dir)" # Then copy the rest of the backend bundle, along with any other files we might want. -ADD packages/backend/dist/bundle.tar.gz app-config.yaml ./ +COPY packages/backend/dist/bundle.tar.gz app-config.yaml ./ +RUN tar xzf bundle.tar.gz && rm bundle.tar.gz CMD ["node", "packages/backend", "--config", "app-config.yaml"] ```