fix(commerce): add TypeScript runtime for Medusa build
Build and Push Medusa / Construir y publicar Medusa (push) Failing after 10m24s

This commit is contained in:
2026-08-01 02:32:05 -05:00
parent 7939dc492c
commit 67f41ccdbb
3 changed files with 174 additions and 2 deletions
+15 -2
View File
@@ -6,7 +6,19 @@ WORKDIR /app
ENV CI=true \
NODE_ENV=development \
NPM_CONFIG_UPDATE_NOTIFIER=false
NPM_CONFIG_UPDATE_NOTIFIER=false \
DATABASE_URL=postgres://medusa:[email protected]:5432/medusa \
REDIS_URL=redis://127.0.0.1:6379 \
STORE_CORS=http://localhost:8000 \
ADMIN_CORS=http://localhost:7001 \
AUTH_CORS=http://localhost:7001 \
JWT_SECRET=build-only-jwt-secret \
COOKIE_SECRET=build-only-cookie-secret \
S3_FILE_URL=http://localhost:9000/ari-shopping \
S3_ACCESS_KEY_ID=build-only-access \
S3_SECRET_ACCESS_KEY=build-only-secret \
S3_BUCKET=ari-shopping \
S3_ENDPOINT=http://127.0.0.1:9000
COPY package.json package-lock.json .npmrc ./
@@ -20,7 +32,8 @@ RUN --mount=type=cache,id=medusa-builder-npm,target=/root/.npm,sharing=private \
COPY tsconfig.json medusa-config.ts ./
COPY src ./src
RUN npm run build
RUN npm run build && \
test -f /app/.medusa/server/medusa-config.js
FROM node:22.18.0-bookworm-slim AS runtime