File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 55 DOCKER_PUSH : ${{ github.ref == 'refs/heads/main' }}
66
77on :
8+ workflow_dispatch :
89 push :
910 branches :
1011 - main
Original file line number Diff line number Diff line change @@ -19,14 +19,19 @@ ENV DOTNET_RUNNING_IN_CONTAINER=true \
1919 DEBIAN_FRONTEND=noninteractive
2020
2121RUN apt-get update \
22- # Install wget
23- && apt-get install -y wget \
24- # Register the Microsoft repository, make sure it matches the platform
25- && wget -q https://packages.microsoft.com/config/ubuntu/18.04 /packages-microsoft-prod.deb \
22+ # Install pre-requisites
23+ && apt-get install -y wget apt-transport-https software-properties-common \
24+ # Register the Microsoft repository
25+ && wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -sr) /packages-microsoft-prod.deb \
2626 && dpkg -i packages-microsoft-prod.deb \
27+ # Enable universe repositories
28+ && sudo add-apt-repository universe \
29+ # Update
2730 && apt-get update \
31+ && apt-get upgrade -y \
2832 # Install .NET SDK and PowerShell
2933 # https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
34+ # https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux
3035 && apt-get install -y ${INSTALL_VERSION} powershell \
3136 && apt-get clean \
3237 && rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments