2026-02-25 17:22:30 +00:00
|
|
|
# AI Service Admin Frontend Dockerfile
|
2026-02-25 18:12:04 +00:00
|
|
|
FROM docker.1ms.run/node:20-alpine AS builder
|
2026-02-25 17:22:30 +00:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
2026-02-25 18:21:30 +00:00
|
|
|
RUN npm ci --include=optional || npm install
|
2026-02-25 17:22:30 +00:00
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
2026-02-25 18:12:04 +00:00
|
|
|
FROM docker.1ms.run/nginx:alpine
|
2026-02-25 17:22:30 +00:00
|
|
|
|
|
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|