1 Star 1 Fork 1

hamasaki/nfs-subdir-external-provisioner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.multiarch 639 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM --platform=$BUILDPLATFORM golang:1.18 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"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ayumi/nfs-subdir-external-provisioner.git
git@gitee.com:ayumi/nfs-subdir-external-provisioner.git
ayumi
nfs-subdir-external-provisioner
nfs-subdir-external-provisioner
master

搜索帮助