diff --git a/golang-cobra/{{ cookiecutter.project_name }}/Dockerfile b/golang-cobra/{{ cookiecutter.project_name }}/Dockerfile index 541a55e..814534a 100644 --- a/golang-cobra/{{ cookiecutter.project_name }}/Dockerfile +++ b/golang-cobra/{{ cookiecutter.project_name }}/Dockerfile @@ -13,8 +13,8 @@ RUN go build \ -o /app/app ENTRYPOINT /app/app -FROM alpine -RUN apk --no-cache add ca-certificates +FROM scratch WORKDIR /app +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /app/app /app ENTRYPOINT [ "/app/app" ]