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

This commit is contained in:
ddCat committed 2026-07-27 21:38:33 +08:00
1 parent 82d868ab0b
commit 342be7be54
2 files changed
+4

No files matched your search

+2
View File
@@ -4,6 +4,8 @@
FROM oven/bun:1.3.13 AS web-build FROM oven/bun:1.3.13 AS web-build
WORKDIR /app/web WORKDIR /app/web
ARG VITE_TLDRAW_LICENSE_KEY
ENV VITE_TLDRAW_LICENSE_KEY=${VITE_TLDRAW_LICENSE_KEY}
COPY web/package.json web/bun.lock ./ COPY web/package.json web/bun.lock ./
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --cache-dir=/root/.bun/install/cache RUN --mount=type=cache,target=/root/.bun/install/cache bun install --cache-dir=/root/.bun/install/cache
COPY VERSION /app/VERSION COPY VERSION /app/VERSION
+2
View File
@@ -12,3 +12,5 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args:
VITE_TLDRAW_LICENSE_KEY: ${VITE_TLDRAW_LICENSE_KEY:-}