Dockerfile 967 B

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