se supone que volvio
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 54s
build-and-deploy / deploy (push) Successful in 15s

This commit is contained in:
2025-05-30 23:51:22 -06:00
parent 254beb897a
commit 32f2686f14
2108 changed files with 301539 additions and 19567 deletions

View File

@@ -1,28 +1,16 @@
######################## builder ########################
FROM node:18-alpine AS builder
WORKDIR /app
# ─── manifests ───────────────────────────────────────────
COPY api/package*.json ./ # api
COPY core/prisma/package*.json ./core/prisma/ # prisma schema
# ─── deps ────────────────────────────────────────────────
RUN npm ci --omit=dev --workspaces --include-workspace-root
# ─── código fuente ──────────────────────────────────────
COPY api/. ./ # api code
COPY core/prisma ./core/prisma # schema & migraciones
# si ocupás el cliente:
RUN npx prisma generate
######################## runtime ########################
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/api ./ # solo la api
COPY package*.json ./
RUN npm install
COPY . .
# Copiamos el script de arranque
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
ENV NODE_ENV=production
EXPOSE 4000
CMD ["node", "server.js"]
CMD ["sh", "/app/entrypoint.sh"]