20 lines
No EOL
322 B
Docker
20 lines
No EOL
322 B
Docker
FROM node:24.10-alpine3.22 AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache python3 make g++ libc6-compat
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci --prefer-offline --no-audit
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /app/dist/ /usr/share/nginx/html/
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
EXPOSE 9080 |