Files
harbor-server/Dockerfile
2025-10-21 12:58:19 +08:00

23 lines
329 B
Docker

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++
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
ENV NODE_ENV=production
CMD ["npm", "start"]