aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.dockerignore7
-rw-r--r--Dockerfile7
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
diff --git a/Dockerfile b/Dockerfile
index 4615c4b..31213dc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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