Number guessing game (1-100, 7 attempts) as a HAL custom-app module.
Serves HTML form UI with per-session state via cookie, no npm deps.
Traefik labels for txt.${DOMAIN} on websecure with letsencrypt TLS.
10 lines
95 B
Docker
10 lines
95 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY server.mjs ./
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "server.mjs"]
|