Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from SceneGate/feature/update-build-ubuntu20
Update build system for Ubuntu 20.04
- Loading branch information
Showing
4 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
# TODO: Move to latest image after PleOps.Cake support Ubuntu 20.04 | ||
# https://github.com/pleonex/PleOps.Cake/issues/35 | ||
FROM mcr.microsoft.com/vscode/devcontainers/dotnetcore:0.148.1-3.1 | ||
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:5.0 | ||
|
||
# Install .NET 5.0 | ||
RUN apt-get update \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get install -y apt-transport-https \ | ||
&& wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | ||
# Install .NET Core 3.1 | ||
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | ||
&& dpkg -i packages-microsoft-prod.deb \ | ||
&& apt-get update \ | ||
&& apt-get install -y dotnet-sdk-5.0 | ||
&& apt-get install -y apt-transport-https \ | ||
&& apt-get update \ | ||
&& apt-get install -y aspnetcore-runtime-3.1 | ||
|
||
# Install Mono (soon won't be necessary (.NET 6?)) | ||
RUN apt install gnupg ca-certificates \ | ||
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ | ||
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" >> /etc/apt/sources.list.d/mono-official-stable.list \ | ||
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" >> /etc/apt/sources.list.d/mono-official-stable.list \ | ||
&& apt update \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt install -y mono-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters