chore(deploy): Node 20, port 4025, registry deps, platform network

- Upgrade Dockerfile base from node:18 to node:20 (fixes crypto global)
- Map host port 4025 → container 4018 (4018 taken by actiontrail)
- Join learning_ai_common_plat_default Docker network for platform service
- Switch all @bytelyst/* link: deps to registry versions
- Bump @bytelyst/llm to ^0.1.1 (adds createFallbackChain, GeminiProvider etc)
- Regenerate pnpm-lock.yaml against Gitea registry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root 2026-04-13 17:23:49 +00:00
parent 5e07ac040d
commit b2f037c77d
5 changed files with 881 additions and 36 deletions

View File

@ -2,7 +2,7 @@
# docker-compose passes GITEA_NPM_TOKEN as a build arg for the private @bytelyst registry
#
# --- Stage 1: Build ---
FROM node:18-alpine AS builder
FROM node:20-alpine AS builder
RUN corepack enable && corepack prepare pnpm@10.6.5 --activate
@ -29,7 +29,7 @@ WORKDIR /app/backend
RUN pnpm run build
# --- Stage 2: Production ---
FROM node:18-alpine
FROM node:20-alpine
RUN corepack enable && corepack prepare pnpm@10.6.5 --activate

View File

@ -56,7 +56,7 @@
"@bytelyst/auth": "^0.1.0",
"@bytelyst/config": "^0.1.0",
"@bytelyst/cosmos": "^0.1.0",
"@bytelyst/llm": "^0.1.0",
"@bytelyst/llm": "^0.1.1",
"@alpacahq/alpaca-trade-api": "^3.1.3",
"@supabase/supabase-js": "^2.90.1",
"@types/cors": "^2.8.19",

View File

@ -7,7 +7,18 @@ services:
dockerfile: backend/Dockerfile
args:
GITEA_NPM_TOKEN: ${GITEA_NPM_TOKEN}
container_name: invttrdg-backend
env_file:
- .env
ports:
- '4018:4018'
- '4025:4018'
networks:
- default
- platform_net
restart: unless-stopped
networks:
default: {}
platform_net:
external: true
name: learning_ai_common_plat_default

View File

@ -10,9 +10,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@bytelyst/kill-switch-client": "link:../../../learning_ai/learning_ai_common_plat/packages/kill-switch-client",
"@bytelyst/react-native-platform-sdk": "link:../../../learning_ai/learning_ai_common_plat/packages/react-native-platform-sdk",
"@bytelyst/telemetry-client": "link:../../../learning_ai/learning_ai_common_plat/packages/telemetry-client",
"@bytelyst/kill-switch-client": "^0.1.0",
"@bytelyst/react-native-platform-sdk": "^1.0.0",
"@bytelyst/telemetry-client": "^0.1.0",
"@expo-google-fonts/inter": "^0.4.2",
"@expo-google-fonts/jetbrains-mono": "^0.4.1",
"@expo/vector-icons": "^15.0.2",

892
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff