aboutsummaryrefslogtreecommitdiff
path: root/app_build/static/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'app_build/static/Dockerfile')
-rw-r--r--app_build/static/Dockerfile9
1 files changed, 9 insertions, 0 deletions
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"]