Initial commit

This commit is contained in:
Daniel Volz
2025-12-19 13:09:53 +01:00
commit 47f8494795
31 changed files with 4055 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Backend build
FROM node:22-slim AS builder
WORKDIR /app
COPY package.json tsconfig.json drizzle.config.ts ./
COPY src ./src
COPY data ./data
RUN npm install
RUN npm run build
RUN npm prune --omit=dev
# Runtime
FROM node:22-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/data ./data
COPY package.json .
USER node
EXPOSE 3000
CMD ["node", "dist/index.js"]