FROM node:22-alpine AS build WORKDIR /app COPY package.json yarn.lock* ./ RUN yarn install --frozen-lockfile 2>/dev/null || yarn install COPY . . RUN yarn build FROM alpine:3.20 RUN apk add --no-cache aws-cli COPY --from=build /app/_site /site