All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
Mirrors the oneos- project layout: multi-stage node:22 → nginx:alpine build, Woodpecker pipeline that tags images as <branch>-<pkg-version> and pushes to harbor.lnh2e.com/lingniu-v1/bi, and a swarm-style docker-compose for deployment. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
16 lines
287 B
Docker
16 lines
287 B
Docker
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
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;"]
|