Files
dancefinder-app/Dockerfile
T

17 lines
426 B
Docker

FROM cypress/base:20.11.0 as builder
WORKDIR /build
COPY ./package.json ./yarn.lock ./.snyk ./
RUN yarn install --frozen-lockfile
COPY ./ ./
RUN yarn run generate && yarn lint
#RUN yarn start:ci & yarn wait && yarn test:cypress
FROM nginx
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/