From 70533027f84f84ed3ee3fec541af0310bbfac82c Mon Sep 17 00:00:00 2001 From: "LUOJIE\\coolp" Date: Tue, 16 Dec 2025 15:38:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20dify1.11.1=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dify_1.11.1/web/Dockerfile | 2 +- dify_1.11.1/web/build_docker.bat | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 dify_1.11.1/web/build_docker.bat diff --git a/dify_1.11.1/web/Dockerfile b/dify_1.11.1/web/Dockerfile index 6edcb97f..4ca061cc 100644 --- a/dify_1.11.1/web/Dockerfile +++ b/dify_1.11.1/web/Dockerfile @@ -1,5 +1,5 @@ # base image -FROM node:22-alpine3.21 AS base +FROM fiof1uwu2mjtuh.xuanyuan.run/node:22-alpine3.21 AS base LABEL maintainer="takatost@gmail.com" # if you located in China, you can use aliyun mirror to speed up diff --git a/dify_1.11.1/web/build_docker.bat b/dify_1.11.1/web/build_docker.bat new file mode 100644 index 00000000..0c0b66e4 --- /dev/null +++ b/dify_1.11.1/web/build_docker.bat @@ -0,0 +1,42 @@ +@echo off +setlocal EnableDelayedExpansion + +REM Check if a version number is provided; prompt if missing +if "%~1"=="" ( + echo Usage: %~nx0 [version] + set /p VERSION=Enter version: + if not defined VERSION ( + echo Version cannot be empty. + pause + exit /b 1 + ) +) else ( + set "VERSION=%~1" +) +set "IMAGE_NAME=dify-web-rowger" +set "TAGGED_IMAGE_NAME=%IMAGE_NAME%:%VERSION%" +set "TAR_FILE_NAME=%IMAGE_NAME%.%VERSION%.tar" + +REM Build the Docker image +echo Building Docker image: %TAGGED_IMAGE_NAME% +docker build -t %TAGGED_IMAGE_NAME% . + +REM Check if the build was successful +if errorlevel 1 ( + echo Docker build failed. + exit /b 1 +) + +REM Save the Docker image to a .tar file +echo Saving Docker image to %TAR_FILE_NAME% +docker save -o %TAR_FILE_NAME% %TAGGED_IMAGE_NAME% + +if errorlevel 1 ( + echo Docker save failed. + exit /b 1 +) + +echo Docker image built and saved successfully. + +pause +endlocal \ No newline at end of file