github.com/psiphon-labs/psiphon-tunnel-core@v2.0.28+incompatible/ConsoleClient/Dockerfile (about)

     1  # Dockerfile to build an image with the local version of psiphon-tunnel-core.
     2  #
     3  # See README.md for usage instructions.
     4  
     5  FROM ubuntu:18.04
     6  
     7  # Install system-level dependencies.
     8  ENV DEBIAN_FRONTEND=noninteractive
     9  RUN apt-get update -y && apt-get install -y --no-install-recommends \
    10      build-essential \
    11      ca-certificates \
    12      curl \
    13      gcc-mingw-w64-i686 \
    14      gcc-mingw-w64-x86-64 \
    15      gcc-multilib \
    16      git \
    17      mingw-w64 \
    18      mercurial \
    19      pkg-config \
    20      upx \
    21    && apt-get clean \
    22    && rm -rf /var/lib/apt/lists/*
    23  
    24  # Install Go.
    25  ENV GOVERSION=go1.17.13 GOROOT=/usr/local/go GOPATH=/go PATH=$PATH:/usr/local/go/bin:/go/bin CGO_ENABLED=1
    26  
    27  RUN curl -L https://storage.googleapis.com/golang/$GOVERSION.linux-amd64.tar.gz -o /tmp/go.tar.gz \
    28     && tar -C /usr/local -xzf /tmp/go.tar.gz \
    29     && rm /tmp/go.tar.gz \
    30     && echo $GOVERSION > $GOROOT/VERSION
    31  
    32  # Get external Go dependencies.
    33  RUN go get github.com/pwaller/goupx
    34  
    35  WORKDIR $GOPATH/src/github.com/Psiphon-Labs/psiphon-tunnel-core/ConsoleClient