| 123456789101112131415161718192021222324252627282930 |
- # Dockerfile to build an image with the local version of psiphon-tunnel-core.
- #
- # See README.md for usage instructions.
- FROM debian:testing
- ENV GOVERSION=go1.4
- # Install system-level dependencies.
- ENV DEBIAN_FRONTEND=noninteractive
- RUN apt-get update && \
- apt-get -y install build-essential python-software-properties bzip2 unzip curl \
- git subversion mercurial bzr \
- gcc-mingw-w64-i686 upx
- # Install Go.
- ENV GOROOT=/go \
- GOPATH=/
- ENV PATH=$PATH:$GOROOT/bin
- RUN echo "INSTALLING GO" && \
- curl -L https://github.com/golang/go/archive/$GOVERSION.zip -o /tmp/go.zip && \
- unzip /tmp/go.zip && \
- rm /tmp/go.zip && \
- mv /go-$GOVERSION $GOROOT && \
- echo $GOVERSION > $GOROOT/VERSION && \
- cd $GOROOT/src && \
- ./all.bash && \
- GOOS=windows GOARCH=386 CGO_ENABLED=1 CC_FOR_TARGET=/usr/bin/i686-w64-mingw32-gcc ./make.bash
- WORKDIR $GOPATH/src
|