added scratch-based image
This commit is contained in:
parent
1142e7c3fd
commit
6fbc5542f2
@ -12,6 +12,18 @@ builds:
|
||||
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildTime={{.Date}}`.
|
||||
|
||||
dockers:
|
||||
-
|
||||
binary: dive
|
||||
dockerfile: Dockerfile.slim
|
||||
image_templates:
|
||||
- "wagoodman/dive:{{ .Tag }}-slim"
|
||||
- "wagoodman/dive:v{{ .Major }}-slim"
|
||||
- "wagoodman/dive:v{{ .Major }}.{{ .Minor }}-slim"
|
||||
- "wagoodman/dive:slim"
|
||||
- "quay.io/wagoodman/dive:{{ .Tag }}-slim"
|
||||
- "quay.io/wagoodman/dive:v{{ .Major }}-slim"
|
||||
- "quay.io/wagoodman/dive:v{{ .Major }}.{{ .Minor }}-slim"
|
||||
- "quay.io/wagoodman/dive:slim"
|
||||
-
|
||||
binary: dive
|
||||
dockerfile: Dockerfile
|
||||
|
3
Dockerfile.slim
Normal file
3
Dockerfile.slim
Normal file
@ -0,0 +1,3 @@
|
||||
FROM scratch
|
||||
COPY dive /
|
||||
ENTRYPOINT ["/dive"]
|
Loading…
x
Reference in New Issue
Block a user