diff options
-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"] |