mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Change node env to test for build-and-test
This commit is contained in:
parent
124f8be370
commit
890d22421c
@ -15,6 +15,7 @@ COPY . .
|
|||||||
CMD ["yarn", "run", "start"]
|
CMD ["yarn", "run", "start"]
|
||||||
|
|
||||||
FROM base as build-and-test
|
FROM base as build-and-test
|
||||||
|
ENV NODE_ENV=test
|
||||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
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 .. \
|
||||||
@ -24,7 +25,6 @@ RUN yarn run build
|
|||||||
|
|
||||||
FROM base as production
|
FROM base as production
|
||||||
ENV NODE_ENV=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/node_modules ./node_modules
|
||||||
COPY --from=build-and-test ./nitro-web/plugins ./plugins
|
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/.nuxt ./.nuxt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user