diff options
author | kwadronaut <kwadronaut@leap.se> | 2019-11-22 14:09:24 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2019-11-22 14:09:24 +0100 |
commit | 44e44820c0a5556c64d21e8829dbfffffd0fbb50 (patch) | |
tree | f6d09ad774c5b4ae20468b373b4004eda67c6573 | |
parent | bc4f7b5837c9cd475858742d810023e1d9fc5d64 (diff) |
Add a Dockerfile to run this webapp
Made to be easy to run from float
-rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0fa5c10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:buster AS build +RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + build-essential pkg-config golang-go git ca-certificates openvpn \ + && rm -rf /var/lib/apt/lists/* + +# don't need to do bash tricks to keep the layers small, as this is a multi-stage build +ENV GOPATH=/go +WORKDIR $GOPATH +RUN go get -u 0xacab.org/leap/vpnweb +RUN strip $GOPATH/leap/vpnweb + +FROM registry.git.autistici.org/ai3/docker/chaperone-base + +COPY --from=build /go/bin/vpnweb /usr/local/bin/vpnweb +COPY chaperone.d/ /etc/chaperone.d + +ENTRYPOINT ["/usr/local/bin/chaperone"] + |