diff options
author | Emile <hanemile@protonmail.com> | 2019-11-04 19:30:30 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-04 19:30:30 +0100 |
commit | 3466f6f419577d9b5a486bb762abf21826c0afab (patch) | |
tree | 77be97fe8390179e95288f8911e7f6f8a463c06f | |
parent | eb1d57d0803cb88c99b8a63a3db7ac8ce3704783 (diff) |
multistage build
-rw-r--r-- | Dockerfile | 5 |
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"] |