2020-01-25 02:56:09 +00:00
|
|
|
ARG NODE_VERSION
|
|
|
|
|
|
|
|
FROM node:${NODE_VERSION}-buster-slim
|
|
|
|
|
|
|
|
SHELL ["/bin/bash", "-l", "-c"]
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
build-essential \
|
|
|
|
libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev autoconf \
|
|
|
|
ca-certificates \
|
|
|
|
wget && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
WORKDIR /git
|
2020-07-27 17:20:31 +00:00
|
|
|
ENV GIT_VERSION="2.28.0"
|
2020-01-25 02:56:09 +00:00
|
|
|
RUN wget -q "https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz" && \
|
|
|
|
tar -zxf "./v${GIT_VERSION}.tar.gz" && \
|
|
|
|
rm "./v${GIT_VERSION}.tar.gz" && \
|
|
|
|
cd "./git-${GIT_VERSION}" && \
|
|
|
|
make configure && \
|
|
|
|
./configure --prefix=/usr && \
|
|
|
|
make all && \
|
|
|
|
make install
|
|
|
|
|
|
|
|
WORKDIR /repo
|
2020-03-27 10:07:48 +00:00
|
|
|
ENV RUNNER_TEMP="/tmp"
|
2020-01-25 02:56:09 +00:00
|
|
|
|
|
|
|
CMD [ "bash" ]
|