Update Dockerfile to use private registry for alpine base image

- Changed FROM alpine:latest to FROM 192.168.1.154:31010/alpine:latest
- Added push-images.bat script to help push base images to private registry
- Ensures all CI/CD pipeline uses consistent registry sources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root 2025-12-19 09:36:04 +08:00
parent 16798c0fac
commit 0beb859c54
2 changed files with 16 additions and 1 deletions

View File

@ -19,7 +19,7 @@ COPY . .
RUN go build -o server ./cmd/server
# Run Stage
FROM alpine:latest
FROM 192.168.1.154:31010/alpine:latest
WORKDIR /app

15
push-images.bat Normal file
View File

@ -0,0 +1,15 @@
@echo off
echo 登录到私有仓库...
docker login 192.168.1.154:31010 -u docker -p dockerxn001624.
echo.
echo 推送 alpine:latest...
docker push 192.168.1.154:31010/alpine:latest
echo.
echo 推送 docker/compose:latest...
docker push 192.168.1.154:31010/docker/compose:latest
echo.
echo 推送完成!
pause