Skip to content

Commit

Permalink
Use installation script for dotnet to support arm64 + amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgHaj committed Sep 21, 2023
1 parent 3f1827f commit 7071874
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker
on:
push:
branches:
- main
- fix-debian-image
tags:
- 'v*'

Expand Down Expand Up @@ -67,6 +67,6 @@ jobs:
file: build/docker/${{ matrix.docker-os }}.Dockerfile
target: ${{ matrix.stage }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
9 changes: 6 additions & 3 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ RUN npm install -g npm@latest
RUN npm install --global yarn


RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt -y update && apt -y upgrade && apt install -y dotnet-sdk-7.0
# Package manager installs are only supported on the x64 architecture. Other architectures, such as Arm, must install .NET by some other means such as with Snap, an installer script, or through a manual binary installation.
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
RUN chmod +x ./dotnet-install.sh
RUN ./dotnet-install.sh --channel 7.0
ENV DOTNET_ROOT $HOME/.dotnet
ENV PATH $DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH

0 comments on commit 7071874

Please sign in to comment.