Dockerfile 236 B

12345678910111213141516171819
  1. FROM golang:1.13-alpine as build
  2. WORKDIR /app
  3. COPY . .
  4. ENV CGO_ENABLED=0
  5. RUN go build -mod=vendor -o bloat
  6. FROM scratch
  7. COPY --from=build /app/bloat /bloat
  8. COPY templates /templates
  9. COPY static /static
  10. EXPOSE 8080
  11. CMD ["/bloat"]