1 Star 0 Fork 2

dafanshu/kafka-connector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 641 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex Ellis 提交于 2019-02-11 15:43 . Bump connector to 0.4.0
FROM golang:1.10 as build
RUN mkdir -p /go/src/github.com/openfaas-incubator/kafka-connector
WORKDIR /go/src/github.com/openfaas-incubator/kafka-connector
COPY vendor vendor
COPY main.go .
# Run a gofmt and exclude all vendored code.
RUN test -z "$(gofmt -l $(find . -type f -name '*.go' -not -path "./vendor/*"))"
RUN go test -v ./...
# Stripping via -ldflags "-s -w"
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -installsuffix cgo -o /usr/bin/producer
FROM alpine:3.9 as ship
RUN apk add --no-cache ca-certificates
COPY --from=build /usr/bin/producer /usr/bin/producer
WORKDIR /root/
CMD ["/usr/bin/producer"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yur/kafka-connector.git
git@gitee.com:yur/kafka-connector.git
yur
kafka-connector
kafka-connector
master

搜索帮助