20 lines
561 B
Docker
20 lines
561 B
Docker
|
|
FROM cypress/base:10 as builder
|
||
|
|
|
||
|
|
# If only we could use globs in COPY or ADD. But alas, we can not.
|
||
|
|
COPY ./package.json /build/package.json
|
||
|
|
COPY ./yarn.lock /build/yarn.lock
|
||
|
|
|
||
|
|
WORKDIR /build
|
||
|
|
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 <joakim@unbound.se>
|
||
|
|
|
||
|
|
COPY --from=builder /build/dist/ /usr/share/nginx/html/
|
||
|
|
COPY --from=builder /build/nginx-conf/default.conf /etc/nginx/conf.d/
|