添加docker镜像等服务
This commit is contained in:
30
build-docker.bat
Normal file
30
build-docker.bat
Normal 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
|
||||
Reference in New Issue
Block a user