add Dockerfiles and docker-compose for Coolify deploy

This commit is contained in:
Lizandro Guarnizo
2026-06-03 22:10:28 -05:00
parent 3c5d81603a
commit 1635723035
4 changed files with 50 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npx prisma generate
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
COPY --from=builder /app/prisma ./prisma
EXPOSE 3000
CMD ["node", "dist/main.js"]