diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-02-08 21:46:51 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-02-08 21:46:51 +0100 |
commit | 16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf (patch) | |
tree | cba45b0082e2b04200644c2a8c480c4ca570a277 | |
parent | 6e9306dee3278e46b46ff59fef6df88ab3987da3 (diff) | |
download | rvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.tar.gz rvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.tar.xz rvnit-16ec20d5c19dbcd76bbc6705292e7ea1b63f7bbf.zip |
add Dockerfile.build
-rw-r--r-- | Dockerfile.build | 9 |
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"] |