17 lines
569 B
Docker
17 lines
569 B
Docker
FROM cypress/base:22.12.0@sha256:227d72382d53081dd326e79c5a51acd219f26400a72705d59e83b3208fcd65a3 as builder
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ./package.json ./package-lock.json ./.snyk ./
|
|
RUN npm ci --no-progress
|
|
|
|
COPY ./ ./
|
|
RUN npm run generate && npm run lint
|
|
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
|
|
|
FROM nginx@sha256:42e917aaa1b5bb40dd0f6f7f4f857490ac7747d7ef73b391c774a41a8b994f15
|
|
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
|
|
|
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
|
COPY --from=builder /build/nginx-conf/default.conf /etc/nginx/conf.d/
|