diff --git a/ubuntu-jammy/Dockerfile b/ubuntu-jammy/Dockerfile index 83c71ed..3d33970 100644 --- a/ubuntu-jammy/Dockerfile +++ b/ubuntu-jammy/Dockerfile @@ -56,8 +56,6 @@ RUN apt-get update -y \ ca-certificates \ curl \ gcc \ - git \ - git-lfs \ gnupg \ libbz2-1.0 \ libev4 \ @@ -77,14 +75,30 @@ RUN adduser --home /home/runner --shell /bin/bash --disabled-password runner \ && adduser runner sudo \ && 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 \ && mkdir -p /usr/share/keyrings \ && 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) \ && 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 install --no-install-recommends --no-install-suggests -y nodejs \ + && npm update --global npm \ && npm install --global yarn \ && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash