diff options
-rw-r--r-- | .dockerignore | 7 | ||||
-rw-r--r-- | Dockerfile | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2e11fc7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +*.o +gmid +gg +regress +Makefile.local +config.h @@ -1,10 +1,9 @@ FROM alpine as builder WORKDIR /build -RUN apk update && apk upgrade && apk add alpine-sdk linux-headers libressl-dev flex bison libevent-dev +RUN apk update && apk upgrade && apk add alpine-sdk linux-headers libressl-dev flex bison libevent-dev libevent-static COPY . . -RUN make clean gmid +RUN make static FROM alpine -RUN apk update && apk upgrade && apk add libressl +RUN apk update && apk upgrade COPY --from=builder /build/gmid /bin/gmid -ENTRYPOINT /bin/gmid |