Files
2026-08-02 17:01:18 +02:00

20 lines
462 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM node:22-alpine
# keine Abhängigkeiten das Programm nutzt nur Node-Bordmittel
WORKDIR /app
COPY index.js ./
ENV PORT=8420 \
HOST=0.0.0.0 \
NODE_ENV=production
# nicht als root laufen
USER node
EXPOSE 8420
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:'+(process.env.PORT||8420)+'/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
CMD ["node", "index.js"]