Dockerfile 292 B

123456789
  1. FROM golang:1.13.5 AS builder
  2. RUN go get -d -v git.alfi.li/gamelang/systems/worldmanager/daemon
  3. WORKDIR $GOPATH/src/git.alfi.li/gamelang/systems/worldmanager/daemon
  4. RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /daemon .
  5. FROM scratch
  6. COPY --from=builder /daemon .
  7. CMD ["/daemon"]