2025-01-10 10:45:50 +00:00
|
|
|
FROM cypress/base:22.13.0@sha256:38eef52043285bae30a0f0af103e0429c9714a671da3b67c30d35ced7460e50c as builder
|
2019-01-15 13:21:24 +01:00
|
|
|
|
|
|
|
|
WORKDIR /build
|
2019-07-04 12:41:27 +02:00
|
|
|
|
2024-11-06 14:40:02 +01:00
|
|
|
COPY ./package.json ./package-lock.json ./.snyk ./
|
|
|
|
|
RUN npm ci --no-progress
|
2019-07-04 12:41:27 +02:00
|
|
|
|
2019-01-15 13:21:24 +01:00
|
|
|
COPY ./ ./
|
2024-11-06 14:40:02 +01:00
|
|
|
RUN npm run generate && npm run lint
|
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
|
|
|
|
2024-12-25 07:07:40 +00:00
|
|
|
FROM nginx@sha256:42e917aaa1b5bb40dd0f6f7f4f857490ac7747d7ef73b391c774a41a8b994f15
|
2019-01-15 13:21:24 +01:00
|
|
|
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
|
|
|
|
|
2022-08-16 06:55:09 +02:00
|
|
|
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
2019-01-15 13:21:24 +01:00
|
|
|
COPY --from=builder /build/nginx-conf/default.conf /etc/nginx/conf.d/
|