From 61d009f18d5886db8b22ae41e04bb41a4ba2fddb Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 1 Jun 2019 16:02:49 +0200 Subject: Initial commit --- docker/static/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docker/static/Dockerfile (limited to 'docker/static/Dockerfile') diff --git a/docker/static/Dockerfile b/docker/static/Dockerfile new file mode 100644 index 0000000..cdba59a --- /dev/null +++ b/docker/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