From beac045d5fa21799872bcd68a7d8bf7a5705edc6 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Fri, 4 Jan 2019 20:42:01 -0200 Subject: [PATCH] Copy components and store, remove in production Needed to run tests --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5b03c8373..882b1cb73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,9 @@ RUN apk --no-cache add git COPY locales ./locales COPY styleguide ./styleguide COPY server ./server -COPY package.json yarn.lock .eslintrc.js .eslintignore store/auth.test.js components/Badges.spec.js nuxt.config.js ./ +COPY components ./components +COPY store ./store +COPY package.json yarn.lock .eslintrc.js .eslintignore nuxt.config.js ./ CMD ["yarn", "run", "start"] FROM base as build-and-test @@ -27,6 +29,7 @@ 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