aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-18 23:15:45 +0000
committerOmar Polo <op@omarpolo.com>2021-01-18 23:15:45 +0000
commit17b09e3cb7158d3b817b42b3f1498b43dcc41e9f (patch)
treec296ee608c90f6204ec63cdfc1e0f12ccafdecbf /Dockerfile
parent94a79035ec810b9c529406aae80037301646500a (diff)
add a dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..af40413
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM alpine as builder
+WORKDIR /build
+RUN apk update && apk upgrade && apk add alpine-sdk linux-headers libressl-dev flex bison
+COPY *.c *.h lex.l parse.y Makefile ./
+RUN make gmid
+
+FROM alpine
+RUN apk update && apk upgrade && apk add libressl
+COPY --from=builder /build/gmid /bin/gmid
+ENTRYPOINT /bin/gmid