# Build stage FROM node:20-alpine as build WORKDIR /app COPY package*.json ./ RUN npm install --legacy-peer-deps COPY . . RUN npm run build # Serve stage FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf # Set environment variables for HF ENV PORT 7860 EXPOSE 7860 CMD ["nginx", "-g", "daemon off;"]