about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-04 19:30:30 +0100
committerEmile <hanemile@protonmail.com>2019-11-04 19:30:30 +0100
commit3466f6f419577d9b5a486bb762abf21826c0afab (patch)
tree77be97fe8390179e95288f8911e7f6f8a463c06f /Dockerfile
parenteb1d57d0803cb88c99b8a63a3db7ac8ce3704783 (diff)
multistage build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 45c1829..216a5bb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,3 +16,8 @@ COPY hosted /workdir/hosted
 RUN go build -o /workdir/manager src/*.go
 
 ENTRYPOINT [ "/workdir/manager" ]
+
+FROM alpine:3
+RUN mkdir /workdir
+COPY --from=0 /workdir/manager .
+CMD ["./manager"]