Use latest version of packages
This commit is contained in:
parent
ea74d092c9
commit
05ff1742cc
1 changed files with 17 additions and 3 deletions
|
|
@ -56,8 +56,6 @@ RUN apt-get update -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
gcc \
|
gcc \
|
||||||
git \
|
|
||||||
git-lfs \
|
|
||||||
gnupg \
|
gnupg \
|
||||||
libbz2-1.0 \
|
libbz2-1.0 \
|
||||||
libev4 \
|
libev4 \
|
||||||
|
|
@ -77,14 +75,30 @@ RUN adduser --home /home/runner --shell /bin/bash --disabled-password runner \
|
||||||
&& adduser runner sudo \
|
&& adduser runner sudo \
|
||||||
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/share/keyrings \
|
||||||
|
&& curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor -o /usr/share/keyrings/github_git-lfs.gpg \
|
||||||
|
&& chmod 0644 /usr/share/keyrings/github_git-lfs.gpg \
|
||||||
|
&& gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys E363C90F8F1B6217 \
|
||||||
|
&& gpg --export E363C90F8F1B6217 > /usr/share/keyrings/git-core_ppa.gpg \
|
||||||
|
&& gpg --batch --yes --delete-keys E363C90F8F1B6217 \
|
||||||
|
&& chmod 0644 /usr/share/keyrings/git-core_ppa.gpg \
|
||||||
|
&& . /etc/lsb-release \
|
||||||
|
&& echo "deb [signed-by=/usr/share/keyrings/git-core_ppa.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/git-core_ppa.list > /dev/null \
|
||||||
|
&& echo "deb [signed-by=/usr/share/keyrings/github_git-lfs.gpg] https://packagecloud.io/github/git-lfs/ubuntu ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/github_git-lfs.list > /dev/null \
|
||||||
|
&& apt-get update -y \
|
||||||
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
|
git \
|
||||||
|
git-lfs
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& mkdir -p /usr/share/keyrings \
|
&& mkdir -p /usr/share/keyrings \
|
||||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg \
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg \
|
||||||
&& chmod 644 /usr/share/keyrings/nodesource.gpg \
|
&& chmod 0644 /usr/share/keyrings/nodesource.gpg \
|
||||||
&& arch=$(dpkg --print-architecture) \
|
&& arch=$(dpkg --print-architecture) \
|
||||||
&& echo "deb [arch=$arch signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODEJS_VERSION} nodistro main" | tee /etc/apt/sources.list.d/nodesource.list > /dev/null \
|
&& echo "deb [arch=$arch signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODEJS_VERSION} nodistro main" | tee /etc/apt/sources.list.d/nodesource.list > /dev/null \
|
||||||
&& apt-get update -y \
|
&& apt-get update -y \
|
||||||
&& apt-get install --no-install-recommends --no-install-suggests -y nodejs \
|
&& apt-get install --no-install-recommends --no-install-suggests -y nodejs \
|
||||||
|
&& npm update --global npm \
|
||||||
&& npm install --global yarn \
|
&& npm install --global yarn \
|
||||||
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
|
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue