FROM golang:1.16-alpine AS builder WORKDIR /go/src/app COPY . . RUN CGO_ENABLED=0 GOOS=linux \ go get -d -v . && \ go build -a -tags netgo -o b56 FROM scratch WORKDIR / COPY --from=builder /go/src/app/b56 . COPY ./static ./static EXPOSE 80 CMD ["/b56"]