27 lines
627 B
Docker
27 lines
627 B
Docker
# ==========================================
|
|
# Stage 1: Build using Node.js + Bun
|
|
# ==========================================
|
|
FROM node:26-alpine AS build
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g bun
|
|
|
|
COPY package.json bun.lockb* ./
|
|
RUN bun install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
ENV CI=true
|
|
ENV NG_CLI_ANALYTICS=false
|
|
|
|
RUN bun run build
|
|
|
|
# ==========================================
|
|
# Stage 2: Serve the app using Nginx
|
|
# ==========================================
|
|
FROM nginx:alpine
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=build /app/dist/lmnp-frontend/browser /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |