From 342be7be5431e246875bb407334cb495488f8aec Mon Sep 17 00:00:00 2001 From: ddCat Date: Mon, 27 Jul 2026 21:38:33 +0800 Subject: [PATCH] =?UTF-8?q?build(deploy):=20tldraw=20=E6=8E=88=E6=9D=83=20?= =?UTF-8?q?-=20=E6=94=AF=E6=8C=81=E4=BB=8E=E9=83=A8=E7=BD=B2=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=B3=A8=E5=85=A5=20License=20Key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ docker-compose.build.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 87c6c6e1a..18b7e25ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 86a271fee..4f0a49e7d 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -12,3 +12,5 @@ services: build: context: . dockerfile: Dockerfile + args: + VITE_TLDRAW_LICENSE_KEY: ${VITE_TLDRAW_LICENSE_KEY:-}