From 890d22421cbf36eeac6536cecfa68bc4d6cdcc26 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Sat, 5 Jan 2019 15:46:56 -0200 Subject: [PATCH] Change node env to test for build-and-test --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3eacaa0fe..27aa21a9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ COPY . . CMD ["yarn", "run", "start"] 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 .. \ @@ -24,7 +25,6 @@ RUN yarn run build FROM base as production ENV NODE_ENV=production -RUN rm -rf ./nitro-web/components ./nitro-web/store 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