Dockerfile 357 B

1234567891011121314151617
  1. FROM alpine AS build
  2. RUN apk update && apk add \
  3. musl-dev \
  4. autoconf \
  5. automake \
  6. make \
  7. gcc \
  8. tini
  9. COPY . /build
  10. WORKDIR /build
  11. RUN autoreconf -fi && ./configure && make
  12. RUN make DESTDIR=/opt install
  13. FROM alpine
  14. COPY --from=build /opt /
  15. COPY --from=build /sbin/tini /sbin/tini
  16. ENTRYPOINT ["/sbin/tini", "/usr/local/bin/ptunnel-ng"]