aboutsummaryrefslogtreecommitdiff
path: root/contrib/Dockerfile
blob: 9d6a29dcd15e986e4b3d183402769acc6c502f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine as builder
WORKDIR /build
RUN apk update &&	\
	apk upgrade &&	\
	apk add	--repository=https://dl-cdn.alpinelinux.org/alpine/edge/main \
		alpine-sdk	\
		linux-headers	\
		bison		\
		libretls-dev	\
		libretls-static	\
		libevent-dev	\
		libevent-static
COPY . .
RUN make static

FROM alpine
RUN apk update && apk upgrade
COPY --from=builder /build/gmid /bin/gmid
ENTRYPOINT ["gmid"]