16 lines
264 B
Docker
16 lines
264 B
Docker
FROM node:21-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:21-alpine
|
|
USER node:node
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
COPY --from=builder /app/build ./build
|
|
CMD ["node", "./build/index.js"]
|