blob: e3aa34b1d527a679318f7f03c02c36bb913e7f6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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 \
&& 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 0xacab.org/leap/getmyip
RUN strip $GOPATH/bin/getmyip
FROM registry.git.autistici.org/ai3/docker/chaperone-base
COPY --from=build /go/bin/getmyip /usr/local/bin/getmyip
COPY chaperone.d/ /etc/chaperone.d
ENTRYPOINT ["/usr/local/bin/chaperone"]
|