13 lines
336 B
Docker
13 lines
336 B
Docker
FROM registry.algo.com.cn/public/entre_dev:latest AS builder
|
|
|
|
COPY . /tmp/saasapi/
|
|
WORKDIR /tmp/saasapi/
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
--mount=type=cache,target=/go/pkg \
|
|
./make.sh
|
|
|
|
FROM registry.algo.com.cn/public/alpine:latest AS product
|
|
|
|
COPY --from=builder /tmp/saasapi/build/saastool /bin/saastool
|