1 Star 0 Fork 0

希言自然/square.certstrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 622 Bytes
一键复制 编辑 原始数据 按行查看 历史
John Wood 提交于 2022-06-21 14:06 . Fix docker file (#161)
# Dockerfile for squareup/certstrap
#
# To build this image:
# docker build -t squareup/certstrap .
#
# To run certstrap from the image (for example):
# docker run --rm squareup/certstrap --version
FROM golang:1.18-alpine as build
WORKDIR /app
COPY go.mod .
COPY go.sum .
# Download dependencies
RUN go mod download
# Copy source
COPY . .
# Build
RUN CGO_ENABLED=0 go build -buildvcs=false -o /usr/bin/certstrap github.com/square/certstrap
# Create a multi-stage build with the binary
FROM gcr.io/distroless/static
COPY --from=build /usr/bin/certstrap /usr/bin/certstrap
ENTRYPOINT ["/usr/bin/certstrap"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fjddao/certstrap.git
[email protected]:fjddao/certstrap.git
fjddao
certstrap
square.certstrap
master

搜索帮助