Files
dancefinder-app/Dockerfile
T

17 lines
569 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 nginx@sha256:ffa524536736e9341b829e0638f56afab8bda691b8cfa46c1f02ffe4c6046f97
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/