2020-07-28 12:47:35 +00:00
|
|
|
FROM ubuntu:18.04
|
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 && \
|
2020-07-28 12:47:35 +00:00
|
|
|
apt-get install -y --no-install-recommends software-properties-common gnupg && \
|
|
|
|
add-apt-repository ppa:git-core/ppa && \
|
|
|
|
apt-get update && \
|
2020-02-05 05:34:19 +00:00
|
|
|
apt-get install -y --no-install-recommends \
|
2020-07-28 12:47:35 +00:00
|
|
|
git \
|
|
|
|
curl \
|
2020-02-05 05:34:19 +00:00
|
|
|
wget \
|
2020-02-24 09:49:55 +00:00
|
|
|
ssh \
|
|
|
|
vim && \
|
2020-07-28 09:59:09 +00:00
|
|
|
apt-get autoclean && \
|
|
|
|
apt-get clean && \
|
|
|
|
apt-get autoremove -y && \
|
2020-07-28 12:47:35 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-03-10 10:52:56 +00:00
|
|
|
RUN git --version && \
|
|
|
|
git config --global init.defaultBranch main && \
|
|
|
|
git config --global init.defaultBranch
|
|
|
|
|
2020-07-28 12:47:35 +00:00
|
|
|
WORKDIR /node
|
|
|
|
ARG NODE_VERSION
|
2020-07-28 14:28:25 +00:00
|
|
|
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
|
2020-07-28 12:47:35 +00:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends ./nodejs.deb && \
|
2021-03-10 10:52:56 +00:00
|
|
|
npm config set user 0 && \
|
|
|
|
npm config set unsafe-perm true && \
|
2020-07-28 12:47:35 +00:00
|
|
|
npm i -g npm && \
|
|
|
|
curl -sL https://deb.nodesource.com/test | bash - && \
|
2021-03-10 10:52:56 +00:00
|
|
|
npm cache clean --force && \
|
2020-03-06 17:54:14 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2020-07-28 12:47:35 +00:00
|
|
|
rm -rf /node
|
2020-02-05 05:34:19 +00:00
|
|
|
|
2020-07-28 12:47:35 +00:00
|
|
|
WORKDIR /repo
|
2020-02-05 05:34:19 +00:00
|
|
|
|
2020-08-06 02:36:20 +00:00
|
|
|
ENV DEBIAN_FRONTEND="noninteractive"
|
2020-07-25 15:12:46 +00:00
|
|
|
ENV LANG="C.UTF-8"
|
2020-08-06 02:36:20 +00:00
|
|
|
ENV CI="true"
|
|
|
|
ENV ImageVersion="20200717.1"
|
|
|
|
ENV GITHUB_SERVER_URL="https://github.com"
|
2020-07-25 15:12:46 +00:00
|
|
|
ENV GITHUB_API_URL="https://api.github.com"
|
2020-08-06 02:36:20 +00:00
|
|
|
ENV GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
|
2020-07-25 15:12:46 +00:00
|
|
|
ENV GITHUB_REPOSITORY_OWNER="peaceiris"
|
|
|
|
ENV GITHUB_ACTIONS="true"
|
2020-08-06 02:36:20 +00:00
|
|
|
ENV GITHUB_ACTOR="peaceiris"
|
|
|
|
ENV GITHUB_REPOSITORY="actions/pages"
|
|
|
|
ENV RUNNER_OS="Linux"
|
|
|
|
ENV RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
|
|
|
|
ENV RUNNER_USER="runner"
|
|
|
|
ENV RUNNER_TEMP="/home/runner/work/_temp"
|
|
|
|
ENV RUNNER_WORKSPACE="/home/runner/work/pages"
|
2020-07-25 15:03:59 +00:00
|
|
|
|
2020-02-05 05:34:19 +00:00
|
|
|
CMD [ "bash" ]
|