makefile go:谦虚的Makefile可以构建测试运行简单的Go二进制文件还可以构建docker映像以能够运行此二进制文件 源码
你好,世界! 入门 $ make -f Makefile.docker tag=simple docker build --build-arg dir=/go/src/github.com/alr-lab/makefile-go --build-arg bin=a.out -t simple:latest . Sending build context to Docker daemon 34.82kB Step 1/10 : FROM golang:1.16-alpine AS builder ---> fe5c000a4768 // ... Step 10/10 : COPY --from=builder ${dir}/${bin} /${bin} ---> Using cache ---> 7532625b022c Successfully built 7532625b022c
文件列表
makefile-go-master.zip
(预估有个10文件)
makefile-go-master
.dockerignore
24B
go.mod
47B
main.go
74B
Dockerfile
221B
LICENSE
1KB
main_test.go
156B
README.md
604B
Makefile
242B
Makefile.docker
359B
暂无评论