1 Star 0 Fork 27

刘宇峰/gt-checksum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 824 Bytes
一键复制 编辑 原始数据 按行查看 历史
atompi 提交于 2023-03-08 16:46 . chore: better docker build experience
## Build
# This dockerfile uses the linux image
# VERSION 1.2.0
# Author: greatsql
# Command format: Instruction [arguments / command] …
FROM golang:latest AS builder
LABEL gt-checksum="greatsql"
MAINTAINER greatsql <greatsql@greatdb.com>
ENV GO111MODULE=on \
GOOS=linux \
GOPROXY="https://goproxy.io" \
GOPRIVATE="github.com/marvinhosea/*"
WORKDIR /go/release
COPY . .
ARG VERSION
RUN go mod tidy
RUN go build -o gt-checksum greatdbCheck.go
RUN mkdir -p ./gt-checksum-${VERSION} && cp -rf docs gc.conf gc.conf-simple gt-checksum Oracle/instantclient_11_2 README.md relnotes gt-checksum-${VERSION}
FROM scratch AS exporter
ARG VERSION
COPY --from=builder /go/release/gt-checksum-${VERSION} ./gt-checksum-${VERSION}
# DOCKER_BUILDKIT=1 docker build --build-arg VERSION=v1.2.0 -f Dockerfile -o ./ .
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/EliLiu/gt-checksum.git
git@gitee.com:EliLiu/gt-checksum.git
EliLiu
gt-checksum
gt-checksum
master

搜索帮助