2020-01-25 03:56:09 +01: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-06-13 10:44:54 +02:00
|
|
|
ENV GIT_VERSION="2.27.0"
|
2020-01-25 03:56:09 +01: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
|
|
|
|
|
2020-06-21 05:58:55 +02:00
|
|
|
WORKDIR /workspace
|
2020-03-27 11:07:48 +01:00
|
|
|
ENV RUNNER_TEMP="/tmp"
|
2020-01-25 03:56:09 +01:00
|
|
|
|
|
|
|
CMD [ "bash" ]
|