Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wellsie committed Mar 25, 2016
1 parent 93e076f commit 46eb4fd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kz8s/centos
MAINTAINER jono@kz8s.io

ENV VERSION 1.6
ENV FILE go$VERSION.linux-amd64.tar.gz
ENV URL https://storage.googleapis.com/golang/$FILE
ENV SHA256 5470eac05d273c74ff8bac7bef5bad0b5abbd1c4052efbdbc8db45332e836b0b

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN set -eux &&\
yum -y install git &&\
yum -y clean all &&\
curl -OL $URL &&\
echo "$SHA256 $FILE" | sha256sum -c - &&\
tar -C /usr/local -xzf $FILE &&\
rm $FILE &&\
mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

WORKDIR $GOPATH

0 comments on commit 46eb4fd

Please sign in to comment.