Skip to content

Go 1.11+ projects require git (alpine-based image) #297

Closed
@PhilippHeuer

Description

@PhilippHeuer

In reference to the issue #238 which was closed with the following quote:

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

Go 1.11+ projects that use go modules are not usable as go directly invokes the git binary which is not present in the container. Go modules are the most official way for projects right now and every project using this can not be build in the golang:alpine image.

I think the git dependency is a hard requirement, not optional/additional and would be happy if we can discuss adding it to the official image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions