2025-01-21 20:09:29 +00:00
|
|
|
FROM cypress/base:22.13.1@sha256:29998b50be0644359f54d011770de743aab75ec35f8568f353b7f53ae17ad3d5 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
|
|
|
|
2025-02-06 04:05:35 +00:00
|
|
|
FROM nginx@sha256:91734281c0ebfc6f1aea979cffeed5079cfe786228a71cc6f1f46a228cde6e34
|
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/
|