30 lines
578 B
Batchfile
30 lines
578 B
Batchfile
@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 |