Ничего лишнего, только пример хорошего Dockerfile для Go приложения при помощи multi-stage build:
FROM golang:1-alpine AS builder RUN mkdir /app WORKDIR /app # be sure that you have .dockerignore in your directory COPY . ./ # maybe you don't need it? depends on what you have on your Makefile: RUN apk add --update bash make git RUN make # --- FROM alpine COPY --from=builder /reporter/out/mobproxy-report / RUN apk add --no-cache ca-certificates ENTRYPOINT ["/app"] # keep it if needed: CMD ["/app", "version"]
В следующем сниппете покажу пример Makefile для production ready Golang приложения.