Files
borrow-system/FrontendV2/Dockerfile
2025-11-03 20:42:52 +01:00

19 lines
279 B
Docker

FROM node:18 as builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
FROM nginx:alpine AS runner
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/dist .
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]