优化task make

This commit is contained in:
algotao
2025-07-25 17:25:17 +08:00
parent a2bf3c853e
commit a78c16d301
9 changed files with 27 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
FROM rta-docker.pkg.coding.net/public/docker/entre_dev:latest AS builder
ARG TARGETOS TARGETARCH APPNAME
COPY . /tmp/saasapi/
WORKDIR /tmp/saasapi/
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
./make.sh
FROM rta-docker.pkg.coding.net/public/docker/alpine:latest AS product
COPY --from=builder /tmp/saasapi/build/saastool /bin/saastool