Dockerfile 278 B

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