2021-11-11 03:50:35 +00:00
|
|
|
FROM cypress/base:16.13.0 as builder
|
2019-01-15 13:21:24 +01:00
|
|
|
|
|
|
|
|
WORKDIR /build
|
2019-07-04 12:41:27 +02:00
|
|
|
|
|
|
|
|
COPY ./package.json ./yarn.lock ./.snyk ./
|
2019-01-15 13:21:24 +01:00
|
|
|
RUN yarn install --frozen-lockfile
|
2019-07-04 12:41:27 +02:00
|
|
|
|
2019-01-15 13:21:24 +01:00
|
|
|
COPY ./ ./
|
|
|
|
|
WORKDIR /build/autopublish-app
|
|
|
|
|
RUN yarn run lint && yarn run build
|
2019-01-15 13:52:04 +01:00
|
|
|
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
2019-01-15 13:21:24 +01:00
|
|
|
RUN yarn run generate
|
|
|
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /build/dist/ /usr/share/nginx/html/
|
|
|
|
|
COPY --from=builder /build/nginx-conf/default.conf /etc/nginx/conf.d/
|