FROM node:24-alpine RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories RUN apk add --no-cache python3 make g++ RUN npm config set registry https://registry.npmmirror.com WORKDIR /app COPY package*.json ./ RUN npm install COPY . . RUN npm run build EXPOSE 3000 ENV NODE_ENV=production CMD ["npm", "start"]