Add Dockerfile and build automation

This commit is contained in:
2026-01-13 19:15:44 +00:00
parent 8f522046aa
commit 45350e7a2b
5 changed files with 212 additions and 5 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM node:25-slim AS builder
WORKDIR /app
COPY .npmrc ./
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:25-slim AS runner
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=builder /app/dist ./dist
USER node
CMD ["node", "dist/index.js"]