2024-12-04 15:02:23 +00:00
|
|
|
FROM cypress/base:22.12.0@sha256:227d72382d53081dd326e79c5a51acd219f26400a72705d59e83b3208fcd65a3 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/
|