-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reverted Dockerfile to alpine base for quicker builds and smaller images * Added CGO_ENABLED=0 to compile
- Loading branch information
Showing
3 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
FROM golang:1.9 | ||
FROM golang:1.9-alpine | ||
|
||
# Install Ruby | ||
WORKDIR /tmp | ||
RUN apt-get -y update \ | ||
&& apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | ||
RUN wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.gz \ | ||
&& tar xzf ruby-2.4.2.tar.gz \ | ||
&& cd ruby-2.4.2 \ | ||
&& ./configure --prefix=/usr/local \ | ||
&& make \ | ||
&& make install | ||
RUN apk add --no-cache \ | ||
ca-certificates \ | ||
git \ | ||
gcc \ | ||
libffi-dev \ | ||
make \ | ||
musl-dev \ | ||
rpm \ | ||
ruby \ | ||
ruby-dev \ | ||
tar | ||
|
||
# Install fpm for package building | ||
RUN apt-get install -y rpm \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists \ | ||
&& gem install --no-rdoc --no-ri fpm | ||
|
||
# Back to the Go thingies | ||
WORKDIR /go | ||
RUN go get -u github.com/golang/dep/... \ | ||
&& go get -u github.com/alecthomas/gometalinter \ | ||
&& go get -u github.com/goreleaser/goreleaser | ||
|
||
RUN gometalinter --install --update | ||
RUN gem install --no-rdoc --no-ri fpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters