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:
parent
3678db8ade
commit
02b70e1e9b
@ -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"]
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user