Fix copy path

This commit is contained in:
Matt Rider 2019-01-09 19:14:38 -02:00
parent 1a234e70f8
commit cca09415c3

View File

@ -18,14 +18,13 @@ RUN yarn install --production=false --frozen-lockfile --non-interactive
RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \ RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \
&& cd .. \ && cd .. \
&& yarn run styleguide:build && yarn run styleguide:build
COPY . .
RUN yarn run build RUN yarn run build
FROM base as production FROM base as production
ENV NODE_ENV=production ENV NODE_ENV=production
RUN yarn install --frozen-lockfile --non-interactive RUN yarn install --frozen-lockfile --non-interactive
COPY --from=build-and-test ./nitro-web/.nuxt ./.nuxt COPY --from=build-and-test ./nitro-web/.nuxt ./.nuxt
COPY --from=build-and-test ./styleguide/dist ./styleguide/dist COPY --from=build-and-test ./nitro-web/styleguide/dist ./styleguide/dist
EXPOSE 3000 EXPOSE 3000
CMD ["yarn", "run", "start"] CMD ["yarn", "run", "start"]