Dockerfile 312 B

1234567891011
  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 go mod tidy
  5. RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /jeopardy .
  6. FROM scratch
  7. COPY --from=builder /jeopardy /jeopardy
  8. ADD public /public
  9. CMD ["/jeopardy"]