Update Dockerfile

This commit is contained in:
docker-images 2025-08-23 00:14:23 +02:00
commit d6a7a35042

View file

@ -1,4 +1,4 @@
FROM node:alpine
FROM node:alpine as builder
ENV NODE_ENV=production
WORKDIR /usr/src/app
@ -6,4 +6,9 @@ COPY --chown=node:node . .
RUN apk add --no-cache python3 make build-base \
&& npm install .
FROM node:alpine as runner
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app ./
USER node
CMD ["node", "run", "start"]