1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: better dockerfile (#770)

This commit is contained in:
Carlos Alexandro Becker 2018-08-20 23:51:37 -03:00 committed by GitHub
parent 3678db8ade
commit 02b70e1e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,7 @@
FROM scratch
FROM golang:1.10
RUN apt-get update && \
apt-get install -y rpm git && \
rm -rf /var/lib/apt/lists/*
COPY goreleaser /goreleaser
ENTRYPOINT ["/goreleaser"]

View File

@ -39,6 +39,25 @@ scoop install goreleaser
> Check the [tap source](https://github.com/goreleaser/homebrew-tap) for
> more details.
### Using Docker
You can use Docker to do simple releases. Currently, the provided docker
image does not provide support for docker-in-docker and snapcraft.
```console
$ docker run \
-v $PWD:/go/src/github.com/user/repo \
-w /go/src/github.com/user/repo \
goreleaser/goreleaser --help
```
Note that the image will almost always have the last stable Go version.
If you need more things, you are encouraged to have your own image. You can
always use GoReleaser's [own Dockerfile][dockerfile] as an example though.
[dockerfile]: https://github.com/goreleaser/goreleaser/blob/master/Dockerfile
## Manually
Download your preferred flavor from the [releases page](https://github.com/goreleaser/goreleaser/releases/latest) and install