grim/wasdead

Merged changes
draft
2019-04-06, Ruin
552c093f4d6f
Merged changes
  • +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"]