build(deploy): tldraw 授权 - 支持从部署环境注入 License Key

This commit is contained in:
ddCat
2026-07-27 21:38:33 +08:00
parent e3416768ab
commit 89a1154aa1
2 changed files with 4 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
FROM oven/bun:1.3.13 AS web-build
WORKDIR /app/web
ARG VITE_TLDRAW_LICENSE_KEY
ENV VITE_TLDRAW_LICENSE_KEY=${VITE_TLDRAW_LICENSE_KEY}
COPY web/package.json web/bun.lock ./
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --cache-dir=/root/.bun/install/cache
COPY VERSION /app/VERSION

View File

@@ -12,3 +12,5 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
VITE_TLDRAW_LICENSE_KEY: ${VITE_TLDRAW_LICENSE_KEY:-}