From 5f9900196ee3d388dbe996dcc95488b525ea6c04 Mon Sep 17 00:00:00 2001 From: SonicGD Date: Thu, 4 Jul 2024 00:14:28 +0500 Subject: [PATCH] feat: try to rebase to github runner image --- Dockerfile | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 668a44e..034e742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ -FROM ubuntu:20.04 as common +FROM ghcr.io/actions/actions-runner:latest as common ARG DEBIAN_FRONTEND=noninteractive ARG GITHUB_CLI_VERSION=2.42.0 +USER root + RUN apt-get update \ + # && apt search liblttng \ && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ @@ -14,14 +17,14 @@ RUN apt-get update \ unzip \ gnupg2 \ # .NET dependencies - libc6 \ - libgcc1 \ - libgssapi-krb5-2 \ - libicu66 \ - libssl1.1 \ - libstdc++6 \ - zlib1g \ - liblttng-ust-ctl4 \ + # libc6 \ + # libgcc1 \ + # libgssapi-krb5-2 \ + # libicu70 \ + # libssl3 \ + # libstdc++6 \ + # zlib1g \ + # liblttng-ust-ctl4 \ rsync \ openssh-client \ sudo \ @@ -52,7 +55,10 @@ COPY global.json /global.json ENV PATH "$PATH:/root/.dotnet" +USER runner + FROM common as wasm +USER root # Emscripten RUN mkdir /ems \ && cd /ems \ @@ -60,4 +66,6 @@ RUN mkdir /ems \ && cd /ems/emsdk \ && ./emsdk install latest \ && ./emsdk activate latest \ - && dotnet workload install wasm-tools \ \ No newline at end of file + && dotnet workload install wasm-tools + +USER runner \ No newline at end of file