|
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
RUN apk add --no-cache python3 make g++
|
|
COPY package*.json ./ RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
|
|
EXPOSE 4000
|
|
|
|
CMD ["node", "dist/main.js"] |