添加一个 init 进程
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-27 03:27:01 +08:00
parent d14aa31fea
commit 345d8218a0

View File

@ -1,6 +1,9 @@
FROM node:lts-alpine AS runtime
WORKDIR /app
# 提供一个很小很小的 init 进程
RUN apk add --no-cache tini
COPY package*.json .
RUN npm install
@ -11,5 +14,8 @@ RUN npm run build
ENV HOST=0.0.0.0
ENV PORT=4321
ENTRYPOINT [ "/sbin/tini", "--" ]
CMD ["node", "./dist/server/entry.mjs"]