fase 1
Build and Push Frontend / Construir y Subir Imagen (push) Successful in 9m23s
Build and Push Medusa / Construir y publicar Medusa (push) Failing after 15m12s

This commit is contained in:
2026-07-31 23:27:01 -05:00
parent 4b85fccc97
commit aa857bc2ae
22 changed files with 1450 additions and 19 deletions
+39
View File
@@ -0,0 +1,39 @@
# syntax=docker/dockerfile:1.7
FROM node:22.18.0-bookworm-slim AS builder
WORKDIR /app
ENV CI=true
ENV NODE_ENV=development
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
COPY package.json .npmrc ./
RUN --mount=type=cache,target=/root/.npm,sharing=locked \
npm install --no-audit --no-fund
COPY tsconfig.json medusa-config.ts ./
COPY src ./src
RUN npm run build
FROM node:22.18.0-bookworm-slim AS runtime
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=9000
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
COPY --from=builder /app/.medusa/server/package.json ./
RUN --mount=type=cache,target=/root/.npm,sharing=locked \
npm install --omit=dev --no-audit --no-fund
COPY --from=builder /app/.medusa/server ./
RUN chown -R node:node /app
USER node
EXPOSE 9000
CMD ["npx", "medusa", "start"]