添加docker镜像等服务

This commit is contained in:
小贺
2025-09-06 20:17:11 +08:00
parent 307dd031eb
commit 8e7790a75c
6 changed files with 224 additions and 0 deletions

30
build-docker.bat Normal file
View File

@@ -0,0 +1,30 @@
@echo off
echo Building SiliconFlow API Key Validator Docker image...
echo.
echo Step 1: Installing backend dependencies...
if not exist node_modules (
npm install
)
echo.
echo Step 2: Installing frontend dependencies...
if not exist frontend\node_modules (
cd frontend
npm install
cd ..
)
echo.
echo Step 3: Building Docker image...
docker build -t siliconflow-validator .
echo.
echo Build completed!
echo To run the container:
echo docker run -p 3000:3000 siliconflow-validator
echo.
echo To run with Docker Compose:
echo docker-compose up
echo.
pause