saastool增加docker/daemon模式
This commit is contained in:
10
docker/build_saastool.sh
Executable file
10
docker/build_saastool.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
|
||||
#/bin/sh -v
|
||||
set -e
|
||||
|
||||
docker buildx build --platform linux/amd64 \
|
||||
-t registry.algo.com.cn/public/saastool:latest \
|
||||
-t registry.algo.com.cn/public/saastool:20250924 \
|
||||
-o type=registry \
|
||||
-f saastool.Dockerfile \
|
||||
../ ;
|
||||
@@ -10,3 +10,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
FROM registry.algo.com.cn/public/alpine:latest AS product
|
||||
|
||||
COPY --from=builder /tmp/saasapi/build/saastool /bin/saastool
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["saastool", "daemon"]
|
||||
Reference in New Issue
Block a user