github.com/searchspring/haus@v0.1.8-0.20200414161854-a7ca8bb9ea93/contrib/docker/Dockerfile (about) 1 FROM golang:alpine 2 ENV GO_VER go1.4.2.linux-amd64 3 ENV HAUS_VER 0.1.7 4 ENV GOPATH /app/go 5 ENV GOROOT /usr/local/go 6 ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin 7 8 # Install build tools 9 RUN \ 10 apk add --update \ 11 build-base \ 12 cmake \ 13 pkgconfig \ 14 # libssh2 \ 15 # libssh2-dev \ 16 openssl \ 17 openssl-dev \ 18 zlib \ 19 git \ 20 perl \ 21 bash \ 22 openssh-client \ 23 24 && rm -rf /var/cache/apk/* 25 26 27 # Install git2go and libgit2 28 RUN go get -d gopkg.in/libgit2/git2go.v22 && \ 29 cd $GOPATH/src/gopkg.in/libgit2/git2go.v22 && \ 30 git checkout next && \ 31 git submodule update --init && \ 32 ./script/build-libgit2-static.sh && \ 33 cd vendor/libgit2/build/ && \ 34 make && \ 35 make install && \ 36 cd ../../../ && \ 37 # make test && \ 38 make install 39 40 ENV PKG_CONFIG_PATH=$GOPATH/src/gopkg.in/libgit2/git2go/vendor/libgit2/build/ 41 42 # Install yaml,RepoTsar, and haus 43 RUN \ 44 go get gopkg.in/yaml.v2 && \ 45 go get github.com/searchspring/repo-tsar && \ 46 go get github.com/searchspring/haus 47