summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-02-08 21:46:51 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-02-08 21:46:51 +0100
commit16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf (patch)
treecba45b0082e2b04200644c2a8c480c4ca570a277
parent6e9306dee3278e46b46ff59fef6df88ab3987da3 (diff)
downloadrvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.tar.gz
rvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.tar.xz
rvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.zip
add Dockerfile.build
-rw-r--r--Dockerfile.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile.build b/Dockerfile.build
new file mode 100644
index 0000000..ecb8219
--- /dev/null
+++ b/Dockerfile.build
@@ -0,0 +1,9 @@
+FROM alpine:3.15 as builder
+RUN apk add --no-cache build-base
+COPY . /src
+RUN make -C src LDFLAGS=-static LDFLAGS+=-s
+
+FROM alpine:3.15
+RUN mkdir /etc/rvnit
+COPY --from=builder /src/rvnit /src/rvnitctl /bin/
+CMD ["/bin/rvnit"]