🐛 fix: add MIDDLEWARE_URL to manacore-web Dockerfile

Add MIDDLEWARE_URL as build argument and environment variable
for SvelteKit's $env/static/private at build time.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Wuesteon 2025-12-08 16:37:18 +01:00
parent f0d57c1922
commit 48c5cb48f7

View file

@ -3,9 +3,11 @@ FROM node:20-alpine AS builder
# Build arguments for SvelteKit static env vars # Build arguments for SvelteKit static env vars
ARG PUBLIC_MANA_CORE_AUTH_URL=http://mana-core-auth:3001 ARG PUBLIC_MANA_CORE_AUTH_URL=http://mana-core-auth:3001
ARG MIDDLEWARE_URL=http://mana-core-middleware:3000
# Set as environment variables for build # Set as environment variables for build
ENV PUBLIC_MANA_CORE_AUTH_URL=$PUBLIC_MANA_CORE_AUTH_URL ENV PUBLIC_MANA_CORE_AUTH_URL=$PUBLIC_MANA_CORE_AUTH_URL
ENV MIDDLEWARE_URL=$MIDDLEWARE_URL
# Install pnpm # Install pnpm
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate RUN corepack enable && corepack prepare pnpm@9.15.0 --activate