diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 6a501e2..8e07862 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -12,6 +12,8 @@ RUN pnpm install --frozen-lockfile 2>/dev/null || pnpm install FROM base AS builder COPY --from=deps /app/node_modules ./node_modules COPY . . +ARG DATABASE_URL +ENV DATABASE_URL=$DATABASE_URL RUN pnpm --filter @moraworld/database generate RUN pnpm --filter @moraworld/database build RUN pnpm --filter @moraworld/api build diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 69752d6..166df85 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -12,6 +12,8 @@ RUN pnpm install --frozen-lockfile 2>/dev/null || pnpm install FROM base AS builder COPY --from=deps /app/node_modules ./node_modules COPY . . +ARG DATABASE_URL +ENV DATABASE_URL=$DATABASE_URL ARG NEXT_PUBLIC_API_URL=http://localhost:3001 ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL RUN pnpm --filter @moraworld/database generate