代码拉取完成,页面将自动刷新
# To run properly, the directory containing the proto files Truss will read to
# generate a service must be mounted into the container, so that the output
# generated by Truss escapes the container.
# Using scratch as a base image would result in a slightly smaller image,
# which would be fine if Truss were a self-contained executable, but protoc
# has difficulty running on a scratch image. Using Alpine Linux alleviates
# these issues and only increases image size by about 5 MB.
FROM golang:alpine3.5
MAINTAINER lab@tune.com
RUN apk update && apk upgrade && apk add --no-cache protobuf git
RUN go version && go get -u -v github.com/gogo/protobuf/protoc-gen-go
COPY ./ $GOPATH/src/github.com/metaverse/truss
RUN go install -v github.com/metaverse/truss/...
WORKDIR /go/src/protos
ENTRYPOINT ["truss"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。