diff options
author | Omar Polo <op@omarpolo.com> | 2021-07-11 18:43:24 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-07-11 18:43:24 +0000 |
commit | 02ccd9d9409ac5b2889154fe52d751689ec40e9a (patch) | |
tree | 725edbf1498f8d0ffdce68f1968c6bafb76110f8 /contrib | |
parent | e8b80030984be6eb0621f998d970c075a45466e5 (diff) |
move the Dockerfile to contrib/
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Dockerfile | 10 | ||||
-rw-r--r-- | contrib/README | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/contrib/Dockerfile b/contrib/Dockerfile new file mode 100644 index 0000000..e70e19c --- /dev/null +++ b/contrib/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine as builder +WORKDIR /build +RUN apk update && apk upgrade && apk add alpine-sdk linux-headers libressl-dev bison libevent-dev libevent-static +COPY . . +RUN make static + +FROM alpine +RUN apk update && apk upgrade +COPY --from=builder /build/gmid /bin/gmid +ENTRYPOINT ["gmid"] diff --git a/contrib/README b/contrib/README index be29c44..b2d39b0 100644 --- a/contrib/README +++ b/contrib/README @@ -1,6 +1,10 @@ This directory is for additional contributed files which may be useful. +Dockerfile + + Sample Dockerfile to build alpine-based gmid images. + gmid.service Simple systemd service file. |