Dockerfile 296 B

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