-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM alpine | ||
MAINTAINER dev@jpillora.com | ||
|
||
#configure go path | ||
ENV GOPATH /root/go | ||
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin | ||
|
||
#package | ||
ENV PACKAGE github.com/jpillora/chisel | ||
|
||
#install go and deps, then package, | ||
#move build binaries out then wipe build tools | ||
RUN apk update && \ | ||
apk add git go gzip && \ | ||
go get -v $PACKAGE && \ | ||
mv $GOPATH/bin/* /usr/local/bin/ && \ | ||
rm -rf $GOPATH && \ | ||
apk del git go gzip && \ | ||
echo "Installed $PACKAGE" | ||
|
||
#alternatively, git clone into $GOPATH/src, | ||
#then go get -u $PACKAGE to update deps | ||
|
||
#run package | ||
ENTRYPOINT ["chisel"] |
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