From 1a546bd3573b373e95ec0c0ecfe27061165cd5a0 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 28 Jun 2025 14:19:42 +0800 Subject: [PATCH] feat: add GIT_TOKEN and PG_CONNECTION_STRING to environment configuration - Updated the .env.template to include GIT_TOKEN for remote repository authentication. - Modified the Dockerfile to accept GIT_TOKEN and PG_CONNECTION_STRING as build arguments, enhancing the configuration for deployment. Signed-off-by: Innei --- .env.template | 1 + Dockerfile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.env.template b/.env.template index 4ed02a38..a313fd2b 100644 --- a/.env.template +++ b/.env.template @@ -2,3 +2,4 @@ S3_ACCESS_KEY_ID= S3_SECRET_ACCESS_KEY= PG_CONNECTION_STRING= +GIT_TOKEN= diff --git a/Dockerfile b/Dockerfile index 482df03b..3c0f35ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,8 @@ RUN pnpm install --frozen-lockfile ARG S3_ACCESS_KEY_ID ARG S3_SECRET_ACCESS_KEY +ARG GIT_TOKEN +ARG PG_CONNECTION_STRING # Build the app. # The build script in the ssr package.json handles building the web app first. RUN pnpm --filter=@afilmory/ssr build