aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: fd3af683c8d19584d23e5dd97f1e3db144079b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM alpine AS build
RUN apk update && apk add \
    musl-dev \
    autoconf \
    automake \
    make \
    gcc \
    tini
COPY . /build
WORKDIR /build
RUN autoreconf -fi && ./configure && make
RUN make DESTDIR=/opt install

FROM alpine
COPY --from=build /opt /
COPY --from=build /sbin/tini /sbin/tini
ENTRYPOINT ["/sbin/tini", "/usr/local/bin/ptunnel-ng"]