FROM cypress/base:16.13.0 as builder WORKDIR /build COPY ./package.json ./yarn.lock ./.snyk ./ RUN yarn install --frozen-lockfile COPY ./ ./ WORKDIR /build/autopublish-app RUN yarn run lint && yarn run build #RUN yarn start:ci & yarn wait && yarn test:cypress RUN yarn run generate FROM nginx MAINTAINER Joakim Olsson COPY --from=builder /build/.output/public/ /usr/share/nginx/html/ COPY --from=builder /build/nginx-conf/default.conf /etc/nginx/conf.d/