Skip to content

Commit

Permalink
Revert "feat: install .net to runner home dir"
Browse files Browse the repository at this point in the history
This reverts commit 1176922.
  • Loading branch information
SonicGD committed Jul 3, 2024
1 parent 1176922 commit dea0196
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ RUN apt-get update \
&& add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/chrome/deb stable main" \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli $(apt-cache depends google-chrome-stable | grep Depends | sed -e "s/.*ends:\ //" -e 's/<[^>]*>//') libxss1 libxtst6 libx11-xcb1 \
# .NET
&& curl -L https://dot.net/v1/dotnet-install.sh -o /dotnet-install.sh \
&& chmod +x /dotnet-install.sh \
&& /dotnet-install.sh --channel 6.0 \
&& /dotnet-install.sh --channel 7.0 \
&& /dotnet-install.sh --channel 8.0 \
&& PATH="$PATH:/root/.dotnet" \
# GitHub Cli
&& curl -L https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb -o /tmp/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb \
&& dpkg -i /tmp/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb \
Expand All @@ -46,17 +53,10 @@ RUN apt-get update \

COPY global.json /global.json

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

USER runner

# .NET
RUN curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --channel 6.0 \
&& ./dotnet-install.sh --channel 7.0 \
&& ./dotnet-install.sh --channel 8.0

FROM common as wasm
USER root
# Emscripten
Expand Down

0 comments on commit dea0196

Please sign in to comment.