Skip to content

Commit

Permalink
feat: try to rebase to github runner image
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jul 3, 2024
1 parent 9446d10 commit 5f99001
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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 \
Expand Down Expand Up @@ -52,12 +55,17 @@ COPY global.json /global.json

ENV PATH "$PATH:/root/.dotnet"

USER runner

FROM common as wasm
USER root
# Emscripten
RUN mkdir /ems \
&& cd /ems \
&& git clone https://github.com/emscripten-core/emsdk.git \
&& cd /ems/emsdk \
&& ./emsdk install latest \
&& ./emsdk activate latest \
&& dotnet workload install wasm-tools \
&& dotnet workload install wasm-tools

USER runner

0 comments on commit 5f99001

Please sign in to comment.