From 2995606f4d376535f20508fd36b9d09227117577 Mon Sep 17 00:00:00 2001 From: Jordan Sokolic Date: Tue, 6 Oct 2020 21:37:13 +0300 Subject: docker --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ffbb47b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine AS build +RUN apk update && apk add \ + musl-dev \ + autoconf \ + automake \ + make \ + gcc +COPY . /build +WORKDIR /build +RUN autoreconf -fi && ./configure && make +RUN make DESTDIR=/opt install + +FROM alpine +COPY --from=build /opt / +COPY docker-entrypoint.sh / +ENTRYPOINT ["/docker-entrypoint.sh"] \ No newline at end of file -- cgit v1.2.3