Node 20 reached end-of-life and gets no fix for CVE-2026-111497 (Brotli decoder OOB write). node:24-alpine currently resolves to 24.22.1, which carries the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
16 lines
269 B
Docker
16 lines
269 B
Docker
FROM node:24-alpine
|
|
|
|
RUN apk add --no-cache wget
|
|
|
|
WORKDIR /app
|
|
|
|
COPY server.js .
|
|
COPY index.html .
|
|
|
|
EXPOSE 3000
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
|
|
CMD wget -qO- http://localhost:3000/healthz || exit 1
|
|
|
|
CMD ["node", "server.js"]
|