1 Star 0 Fork 2

Kenny小狼 / nfs-subdir-external-provisioner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.multiarch 638 Bytes
一键复制 编辑 原始数据 按行查看 历史
Moikot 提交于 2020-12-17 00:58 . Add GitAction
FROM --platform=$BUILDPLATFORM golang:1.14 as build-env
# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
# based on TARGETPLATFORM provided by Docker.
COPY --from=tonistiigi/xx:golang-1.0.0 / /
ARG APP_FOLDER
ADD . ${APP_FOLDER}
WORKDIR ${APP_FOLDER}
# Compile independent executable using go wrapper from xx:golang
ARG TARGETPLATFORM
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner
FROM --platform=$TARGETPLATFORM alpine:3.12
RUN apk update --no-cache && apk add ca-certificates
COPY --from=build-env /bin/main /app/main
ENTRYPOINT ["/app/main"]
1
https://gitee.com/kennylee/nfs-subdir-external-provisioner.git
git@gitee.com:kennylee/nfs-subdir-external-provisioner.git
kennylee
nfs-subdir-external-provisioner
nfs-subdir-external-provisioner
master

搜索帮助