grim/wasdead
Clone
Summary
Browse
Changes
Graph
Merged changes
draft
2019-04-06, Ruin
552c093f4d6f
Parents
93b7c04b036d
c5d0072277e8
Children
85f135c14ee7
Merged changes
2 files changed, 15 insertions(+), 0 deletions(-)
+2
-0
.dockerignore
+13
-0
Dockerfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.dockerignore Sat Apr 06 00:31:29 2019 -0700
@@ -0,0 +1,2 @@
+db/
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile Sat Apr 06 00:31:29 2019 -0700
@@ -0,0 +1,13 @@
+FROM golang:1.12 AS build
+
+COPY . /nowdead
+
+WORKDIR /nowdead
+
+RUN CGO_ENABLED=0 go build -ldflags '-w -extldflags "-static"'
+
+FROM scratch
+
+COPY --from=build /nowdead/nowdead /nowdead
+
+CMD ["/nowdead"]