代码拉取完成,页面将自动刷新
ARG GO_BUILDER=docker.io/library/golang:1.22
ARG BASE_IMAGE=docker.io/library/alpine:3.12
FROM ${GO_BUILDER} AS builder
ARG VERSION
ARG GOPROXY
WORKDIR /workspace
COPY . .
RUN GOPROXY=${GOPROXY} go mod download
RUN GOPROXY=${GOPROXY} CGO_ENABLED=0 go build -ldflags "-w -s -X github.com/linuxsuren/api-testing/pkg/version.version=${VERSION}\
-X github.com/linuxsuren/api-testing/pkg/version.date=$(date +%Y-%m-%d)" -o atest-store-iotdb .
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.source=https://github.com/LinuxSuRen/atest-ext-store-iotdb
LABEL org.opencontainers.image.description="IoTDB database Store Extension of the API Testing."
COPY --from=builder /workspace/atest-store-iotdb /usr/local/bin/atest-store-iotdb
CMD [ "atest-store-iotdb" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。