Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
- Use alpine:latest
  • Loading branch information
k1LoW committed Oct 22, 2021
1 parent b1f2849 commit 4c37754
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 41 deletions.
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ dockers:
goos: linux
goarch: amd64
image_templates:
- 'k1low/tbls:v{{ .Version }}'
- 'k1low/tbls:latest'
- 'ghcr.io/k1low/tbls:v{{ .Version }}'
- 'ghcr.io/k1low/tbls:latest'
dockerfile: docker/Dockerfile.ghcr.io
dockerfile: docker/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand Down
17 changes: 5 additions & 12 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
FROM alpine:latest

ENTRYPOINT ["tbls"]
WORKDIR /work
VOLUME ["/work"]

RUN apk add bash curl
RUN apk add --no-cache bash curl git

SHELL ["/bin/bash", "-c"]

RUN set -x \
&& source <(curl -sL https://git.io/use-tbls) \
&& which tbls | xargs -I{} mv {} /usr/local/bin/tbls \
&& apk del bash curl
ENTRYPOINT ["tbls"]
CMD [ "-h" ]

SHELL ["/bin/sh", "-c"]
COPY tbls_*.apk /tmp/
RUN apk add --allow-untrusted /tmp/tbls_*.apk
9 changes: 0 additions & 9 deletions docker/Dockerfile.ghcr.io

This file was deleted.

19 changes: 0 additions & 19 deletions docker/Dockerfile.hub.docker.com

This file was deleted.

0 comments on commit 4c37754

Please sign in to comment.