krz/brand-bench

clone: git clone https://gitbay.org/krz/brand-bench.git

main: Dockerfile · raw

 1# ── Stage 1: build ───────────────────────────────────────────────────────────
 2FROM node:22-alpine AS build
 3
 4WORKDIR /app
 5
 6COPY package*.json ./
 7RUN npm ci
 8
 9COPY . .
10RUN npm run build
11
12# ── Stage 2: serve ───────────────────────────────────────────────────────────
13FROM nginx:alpine
14
15COPY --from=build /app/dist /usr/share/nginx/html
16COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
17
18EXPOSE 80