17 lines
569 B
Docker
17 lines
569 B
Docker
FROM cypress/base:22.13.1@sha256:29998b50be0644359f54d011770de743aab75ec35f8568f353b7f53ae17ad3d5 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:0a399eb16751829e1af26fea27b20c3ec28d7ab1fb72182879dcae1cca21206a
|
|
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/
|