FROM alpine:3.22.4 AS build

RUN apk add --no-cache zip

WORKDIR /smartclientcore-vega-demo

COPY . ./smartclientcore-vega-demo

RUN zip -r smartclientcore-vega-demo.zip smartclientcore-vega-demo/

FROM scratch AS artefact

ARG VERSION
LABEL version=$VERSION

COPY --from=build /smartclientcore-vega-demo/*.zip ./dist/
CMD noop
