FROM node:22.12.0-alpine as builder RUN apk add -U make python3 py3-pip curl RUN python3 -m pip config set global.break-system-packages true COPY . /project/ WORKDIR /project RUN CI=true make install RUN make docs/build FROM nginx:1.27.0 ADD storybook_nginx.conf /etc/nginx/templates/default.conf.template COPY --from=builder /project/docs /usr/share/nginx/html COPY --from=builder /project/packages/ui/storybook-static /usr/share/nginx/html/storybook