From b17107438cbdedcb32d23bda408a85e4e8a1fe58 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Wed, 9 Jan 2019 19:52:38 -0200 Subject: [PATCH] Revert to passing build --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f8b8a8c4..75237af56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ 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 .. \ @@ -23,10 +24,9 @@ RUN yarn run build FROM base as production ENV NODE_ENV=production -RUN yarn install --frozen-lockfile --non-interactive -COPY --from=build-and-test ./nitro-web/.nuxt ./.nuxt -COPY --from=build-and-test ./nitro-web/styleguide/dist ./styleguide/dist +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