summary refs log tree commit diff
path: root/Dockerfile.build
blob: ecb8219360bdf0f6f8bfe6c682cb7b593b4dd6bb (plain) (blame)
1
2
3
4
5
6
7
8
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"]