From 1b23d574a5a482cbe9b5f99da7338561239a1295 Mon Sep 17 00:00:00 2001 From: snaily Date: Sun, 20 Apr 2025 12:12:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Dockerfile=20=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20VERSION=20=E6=96=87=E4=BB=B6=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 VERSION 文件复制到 Docker 镜像中,以便在运行时可以访问版本信息。 --- Dockerfile | 1 + VERSION | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7b355e8..97292c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app # 复制所需文件到容器中 COPY ./requirements.txt /app +COPY ./VERSION /app RUN pip install --no-cache-dir -r requirements.txt COPY ./app /app/app diff --git a/VERSION b/VERSION index e8f41f0..ed35d09 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.8 \ No newline at end of file +2.0.9 \ No newline at end of file