FROM node:15 as builder

COPY site/ /site/

WORKDIR /site

RUN npm install

RUN npx sapper export --legacy

FROM scratch as final

COPY --from=builder /site/__sapper__/export .