Scaffold Docker-only Node 24 + TypeScript EJS web backend

This commit is contained in:
2026-06-14 11:45:30 +02:00
commit 4eed701419
25 changed files with 2443 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Node 24 runs TypeScript directly (type stripping) — no build step.
# Pinned to an exact, human-readable version (node / alpine).
FROM node:24.16.0-alpine3.24
WORKDIR /app
# Reproducible install from the committed lockfile. Dev deps (typescript, types)
# are kept so `npm run typecheck` / `npm test` work in the same image.
COPY package.json package-lock.json .npmrc ./
RUN npm ci
COPY . .
ENV PORT=3000
EXPOSE 3000
CMD ["node", "src/server.ts"]