From 6948c147e28d3e05bd930dd753e5081a4273df3e Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Wed, 9 Jan 2019 20:05:04 -0200 Subject: [PATCH] Remove un-needed copies --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75237af56..8f7df318b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,20 +14,16 @@ RUN apk --no-cache add git COPY . . FROM base as build-and-test -ENV NODE_ENV=test RUN yarn install --production=false --frozen-lockfile --non-interactive RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \ && cd .. \ && yarn run styleguide:build -COPY . . RUN yarn run build FROM base as production ENV NODE_ENV=production COPY --from=build-and-test ./nitro-web/node_modules ./node_modules -COPY --from=build-and-test ./nitro-web/plugins ./plugins COPY --from=build-and-test ./nitro-web/.nuxt ./.nuxt -COPY --from=build-and-test ./nitro-web/static ./static EXPOSE 3000 CMD ["yarn", "run", "start"]