Put CMD in base section in Dockerfile

This should fix our build server. Probably the container immediately
exited on Travis which is using the `builder` stage for testing.
This commit is contained in:
Robert Schäfer 2019-01-04 19:52:52 +01:00
parent 9b3161ae15
commit 00d1ca0129

View File

@ -13,6 +13,7 @@ RUN apk --no-cache add git
COPY package.json yarn.lock ./
COPY styleguide/ ./styleguide
CMD ["yarn", "run", "start"]
FROM base as builder
RUN yarn install --frozen-lockfile --non-interactive
@ -32,4 +33,3 @@ COPY --from=builder /nitro-web/.nuxt/ ./.nuxt
COPY --from=builder ./nitro-web/static ./static/
EXPOSE 3000
CMD ["yarn", "run", "start"]