first commit

This commit is contained in:
Kurt Ferreira
2026-04-11 13:57:02 +02:00
commit db5ca09c1b
5 changed files with 189 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# Stage 1: install production dependencies
FROM node:20-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
# Stage 2: final image — no dev tools, no npm cache
FROM node:20-alpine
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY src/ ./src/
EXPOSE 3000
USER node
CMD ["node", "src/index.js"]