feat: First iteration, multi themes, I18N

This commit is contained in:
gauvainboiche
2026-10-08 11:58:18 +02:00
parent 9240fa3c3c
commit aa9721ac2a
53 changed files with 3363 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
# One small image runs the whole game: a zero-dependency Node server that
# serves the static frontend and lists the installed themes/languages.
FROM node:24-alpine
ENV NODE_ENV=production \
PORT=8080
WORKDIR /app
# Files stay owned by root and read-only for the runtime user: the app can't modify itself.
COPY package.json ./
COPY server ./server
COPY public ./public
# Run as the unprivileged "node" user (uid 1000) that ships with the image.
USER node
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD ["node", "-e", "fetch('http://127.0.0.1:' + process.env.PORT + '/healthz').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"]
CMD ["node", "server/index.js"]