From a23e08ce20887efb4e158a02ffee1f775a0db89f Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 12 Sep 2020 20:17:07 +0200 Subject: Refactor 2 --- app/build/static/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/build/static/Dockerfile (limited to 'app/build/static/Dockerfile') diff --git a/app/build/static/Dockerfile b/app/build/static/Dockerfile new file mode 100644 index 0000000..cdba59a --- /dev/null +++ b/app/build/static/Dockerfile @@ -0,0 +1,9 @@ +FROM golang:1.11.1-stretch as builder + +COPY ./goStatic /goStatic +WORKDIR /goStatic +RUN CGO_ENABLED=0 go build -a -o web-server . + +FROM scratch +COPY --from=builder /goStatic/web-server / +ENTRYPOINT ["/web-server"] -- cgit v1.2.3