mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-01-10 13:25:42 +00:00
ade8887479
* deps: bump node 12.15.0 to 12.16.1 * deps: bump git 2.25.0 to 2.25.1 * chore: validate node and npm version by engines field * ci: Add npm i -g npm
32 lines
732 B
Docker
32 lines
732 B
Docker
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 \
|
|
ssh \
|
|
vim && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
npm i -g npm
|
|
|
|
WORKDIR /git
|
|
ENV GIT_VERSION="2.25.1"
|
|
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" ]
|