-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ubuntu 22.04 image * add newline
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu.azurecr.io/ubuntu:22.04 | ||
|
||
# Install dependencies needed to build, test, and longtest Go. | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
ca-certificates \ | ||
binutils \ | ||
gcc \ | ||
gdb \ | ||
git \ | ||
mercurial \ | ||
sudo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install tools used to add the Microsoft package repository, necessary to install PowerShell. | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
curl \ | ||
gnupg\ | ||
apt-transport-https \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Add the Microsoft package repository. | ||
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ | ||
&& echo "deb https://packages.microsoft.com/ubuntu/22.04/prod/ jammy main" > /etc/apt/sources.list.d/microsoft.list | ||
|
||
# Install PowerShell. | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
powershell \ | ||
&& rm -rf /var/lib/apt/lists/* |