1 Star 0 Fork 1

barti/flink-on-k8s-operator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Build the manager binary
FROM golang:1.18.3-alpine as builder
WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download
# Copy the go source
COPY main.go main.go
COPY internal/ internal/
COPY apis/ apis/
COPY controllers/ controllers/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o flink-operator main.go
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/flink-operator .
USER 65532:65532
ENTRYPOINT ["/flink-operator"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/barti/flink-on-k8s-operator.git
git@gitee.com:barti/flink-on-k8s-operator.git
barti
flink-on-k8s-operator
flink-on-k8s-operator
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385