actions-gh-pages/Dockerfile

46 lines
1.1 KiB
Docker
Raw Normal View History

ARG NODE_VERSION
FROM node:${NODE_VERSION}-buster-slim
2019-05-22 06:53:54 +09: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 \
ssh \
vim && \
2020-07-28 18:59:09 +09:00
apt-get autoclean && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
npm i -g npm
WORKDIR /git
ENV GIT_VERSION="2.28.0"
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
ENV LANG="C.UTF-8"
ENV ImageVersion="20200625.0"
ENV GITHUB_API_URL="https://api.github.com"
ENV RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
ENV GITHUB_REPOSITORY_OWNER="peaceiris"
ENV GITHUB_ACTIONS="true"
2020-07-26 00:03:59 +09:00
ENV CI="true"
WORKDIR /repo
2020-07-28 18:59:09 +09:00
RUN rm -rf /git && \
git --version && \
git config --global init.defaultBranch main && \
git config --global init.defaultBranch
CMD [ "bash" ]