Skip to content

Commit

Permalink
feat: docker image (#64)
Browse files Browse the repository at this point in the history
Closes: #64
  • Loading branch information
natesales committed Oct 2, 2023
1 parent 4641d1d commit e15fef5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ publishers:
brews:
- name: q
homepage: https://github.com/natesales/repo
tap:
repository:
owner: natesales
name: repo
dockers:
- image_templates:
- "ghcr.io/natesales/q:{{ .Version }}"
- "ghcr.io/natesales/q:latest"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=GPL-3.0-only
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:latest
COPY q /usr/bin/q
ENTRYPOINT ["/usr/bin/q"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ Help Options:

### Installation

`q` is available in binary form from:
`q` is available from:

- [apt/yum/brew from my package repositories](https://github.com/natesales/repo)
- [GitHub releases](https://github.com/natesales/q/releases)
- [q-dns-git](https://aur.archlinux.org/packages/q-dns-git/) in the AUR
- `go install github.com/natesales/q@latest`
- `docker run --rm -it ghcr.io/natesales/q`

To install `q` from source:

Expand Down

0 comments on commit e15fef5

Please sign in to comment.