FROM golang:1.13-alpine as build WORKDIR /app COPY . . ENV CGO_ENABLED=0 RUN go build -mod=vendor -o bloat FROM scratch COPY --from=build /app/bloat /bloat COPY templates /templates COPY static /static EXPOSE 8080 CMD ["/bloat"]