Dockerfile 778 B

1234567891011121314151617181920212223242526
  1. # Dockerfile to build an image with the local version of psiphon-tunnel-core.
  2. #
  3. # See README.md for usage instructions.
  4. FROM ubuntu:15.04
  5. ENV GOVERSION=go1.5
  6. # Install system-level dependencies.
  7. ENV DEBIAN_FRONTEND=noninteractive
  8. RUN apt-get update && apt-get -y install build-essential curl git mercurial upx gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 gcc-multilib
  9. # Install Go.
  10. ENV GOROOT=/usr/local/go GOPATH=/go
  11. ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  12. RUN curl -L https://storage.googleapis.com/golang/$GOVERSION.linux-amd64.tar.gz -o /tmp/go.tar.gz && \
  13. tar -C /usr/local -xzf /tmp/go.tar.gz && \
  14. rm /tmp/go.tar.gz && \
  15. echo $GOVERSION > $GOROOT/VERSION
  16. ENV CGO_ENABLED=1
  17. RUN go get github.com/mitchellh/gox && go get github.com/pwaller/goupx
  18. WORKDIR $GOPATH/src