Public Repository

Last pushed: 7 months ago
Short Description
Golang + Git
Full Description

Made for Gitaly

Source: https://gitlab.com/bkc/docker_golang_git/blob/master/Dockerfile

FROM golang:1.7

ENV GIT_VERSION 2.8.4
ENV GIT_DOWNLOAD_URL https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
ENV GIT_DOWNLOAD_SHA256 626e319f8a24fc0866167ea5f6bf3e2f38f69d6cb2e59e150f13709ca3ebf301

# Install Build-deps
RUN apt-get update && apt-get install -y \
    dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
    gettext libz-dev libssl-dev \
    && mkdir build \
    && curl -fsSL "$GIT_DOWNLOAD_URL" -o git.tar.gz \
    && echo "$GIT_DOWNLOAD_SHA256 git.tar.gz" | sha256sum -c - \
    && tar -C build -xzf git.tar.gz \
    && cd build/git-$GIT_VERSION \
    && chmod +x configure \
    && ./configure \
    && make all \ 
    && make install PREFIX=/usr/local \ 
    && cd ../.. \ 
    && rm -rf build \
    && rm git.tar.gz

ENV PATH /usr/local/bin:$PATH
Docker Pull Command
Owner
bkcsoft

Comments (0)