From c7649dbe6b3fc688121955aa72584a0c932cfc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=92=E5=AF=92?= <2596194220@qq.com> Date: Sun, 24 May 2026 23:07:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=EF=BC=8C=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 - .env.docker | 15 --------------- .version | 4 ++-- Dockerfile | 1 + 4 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 .env.docker diff --git a/.dockerignore b/.dockerignore index 87a6fb0..b753c06 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,7 +12,6 @@ build .gitignore # Environment files -.env .env.local .env.*.local diff --git a/.env.docker b/.env.docker deleted file mode 100644 index 46b83e1..0000000 --- a/.env.docker +++ /dev/null @@ -1,15 +0,0 @@ -# 数据库配置(外部服务) -DB_HOST=localhost -DB_PORT=3306 -DB_USER=root -DB_PASSWORD=123456 -DB_NAME=recipe_tools - -# AI 翻译配置 -AI_API_KEY=your_api_key_here -AI_BASE_URL=https://api.openai.com/v1 -AI_MODEL=gpt-3.5-turbo - -# 版本更新配置 -# 在 OneDev 中创建 Access Token (Settings → Access Tokens → New Token, scope: Read code) -ONEDEV_ACCESS_TOKEN=Gtn1krR7tmv4x2c7xLupvW6OqgwWbmanpKonknpQ diff --git a/.version b/.version index e9188f3..56c56fd 100644 --- a/.version +++ b/.version @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.0.3", "release_date": "2025-01-15", - "changelog": "更新版本号,测试更新功能" + "changelog": "更新版本号,更新配置文件构建" } diff --git a/Dockerfile b/Dockerfile index f0e0543..3379e26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,7 @@ COPY --from=builder /app/.next/static ./.next/static # 复制配置文件 COPY --from=builder /app/config.json ./ COPY --from=builder /app/.version ./ +COPY --from=builder /app/.env ./ # 给 nextjs 用户授权整个目录 RUN chown -R nextjs:nodejs /app