Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
guptarohit committed May 2, 2022
1 parent 059c63d commit 5deec54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ release:
dockers:
- image_templates:
- 'ghcr.io/guptarohit/asciigraph:{{ .Version }}'
dockerfile: Dockerfile
- 'ghcr.io/guptarohit/asciigraph:{{ .Tag }}'
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}'
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}.{{ .Minor }}'
- 'ghcr.io/guptarohit/asciigraph:latest'
dockerfile: goreleaser.dockerfile
build_flag_templates:
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
- '--label=org.opencontainers.image.name={{ .ProjectName }}'
Expand Down
3 changes: 3 additions & 0 deletions goreleaser.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
COPY asciigraph /asciigraph
ENTRYPOINT ["/asciigraph"]

0 comments on commit 5deec54

Please sign in to comment.