This commit is contained in:
15
Containerfile
Normal file
15
Containerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM node:21 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:21
|
||||
USER node:node
|
||||
WORKDIR /app
|
||||
COPY package.json .
|
||||
COPY --from=builder /app/build ./build
|
||||
CMD ["node", "./build/index.js"]
|
Reference in New Issue
Block a user