2020-02-05 05:34:19 +00:00
|
|
|
ARG NODE_VERSION
|
2019-05-21 21:53:54 +00:00
|
|
|
|
2020-02-05 05:34:19 +00:00
|
|
|
FROM node:${NODE_VERSION}-buster-slim
|
2019-05-21 21:53:54 +00:00
|
|
|
|
2020-02-05 05:34:19 +00:00
|
|
|
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 \
|
2020-02-24 09:49:55 +00:00
|
|
|
ssh \
|
|
|
|
vim && \
|
2020-03-06 17:54:14 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
npm i -g npm
|
2020-02-05 05:34:19 +00:00
|
|
|
|
|
|
|
WORKDIR /git
|
2020-03-26 12:10:58 +00:00
|
|
|
ENV GIT_VERSION="2.26.0"
|
2020-02-05 05:34:19 +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
|
|
|
|
|
|
|
|
CMD [ "bash" ]
|