18 lines
341 B
Docker
18 lines
341 B
Docker
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:22-alpine
|
|
WORKDIR /app
|
|
RUN chown -R node:node /app
|
|
USER node:node
|
|
COPY ./container/entrypoint.sh /entrypoint.sh
|
|
COPY package.json .
|
|
COPY --from=builder /app/build ./build
|
|
ENTRYPOINT ["sh", "/entrypoint.sh"]
|