diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..cc7ce7f --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v22.13.1 diff --git a/Dockerfile b/Dockerfile index 374fb10..d1cfab9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY . . RUN npm run build # Deps stage -FROM node:18-alpine AS dependencies +FROM node:22-alpine AS dependencies WORKDIR /app COPY package*.json . RUN npm ci --omit=dev @@ -19,3 +19,4 @@ COPY package*.json . COPY --from=build /app/dist ./dist COPY --from=dependencies /app/node_modules ./node_modules CMD ["npm", "run", "start"] +HEALTHCHECK --interval=1m --start-period=5s CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/health || exit 1