17 lines
582 B
Docker
17 lines
582 B
Docker
FROM cypress/base:22.14.0@sha256:b5ee6f4a54c2966a2d855693bd12a063b9fcf7159930e2c4d57ab138d36a8a51 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 amd64/nginx:1.27.4@sha256:e0a703149305ffede8d674977e774dd587c9dff01f7b737c5a8dc5ae8a9cf52f
|
|
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/
|