FROM alpine:latest as builder RUN apk add npm git COPY . /opt WORKDIR /opt RUN npm ci RUN npm run build FROM caddy:latest as httpd COPY --from=builder /opt/public /srv