Files
dancefinder-app/Dockerfile
T

17 lines
569 B
Docker

FROM cypress/base:22.12.0@sha256:227d72382d53081dd326e79c5a51acd219f26400a72705d59e83b3208fcd65a3 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:fb197595ebe76b9c0c14ab68159fd3c08bd067ec62300583543f0ebda353b5be
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/