Add Docker configuration and environment setup for Tennis Roots project

This commit is contained in:
Nicola
2026-06-24 13:08:41 +02:00
parent 2d4c3864ef
commit e36364b3d9
5 changed files with 113 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
# ---- Build ----
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
# ---- Run ----
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY index.js ./
EXPOSE 3000
USER node
CMD ["node", "index.js"]