FROM node:22-alpine AS build WORKDIR /app RUN corepack enable COPY package.json yarn.lock ./ RUN yarn install COPY . . RUN yarn build FROM nginx:stable-alpine COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]