diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fd3af68 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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"]
\ No newline at end of file |