Create Dockerfile for building releases

This commit is contained in:
Anders Pitman 2020-11-04 09:05:08 -07:00
parent 8f8ce29a1d
commit 88b02658a5
2 changed files with 16 additions and 0 deletions

14
release/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
# This Dockerfile is for building releases. It creates executables files for
# all supported platforms. It intentially uses an old version of Linux so that
# the produced executables will run on old versions.
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y curl git
RUN git clone https://github.com/boringproxy/boringproxy
WORKDIR boringproxy
RUN ./scripts/install_go.sh
ENV PATH="${PATH}:/usr/local/go/bin"
ENV PATH="${PATH}:/root/go/bin"
RUN go get github.com/GeertJohan/go.rice/rice

View File

@ -2,6 +2,8 @@
version=$(git describe --tags)
rice embed-go
./scripts/build_all_platforms.sh
tar -czf ./boringproxy_${version}.tar.gz build/