-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch image 6 be based on cimg/base
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 | ||
|
||
# Check latest version at https://api.github.com/repos/docker/cli/tags | ||
ENV DOCKER_VERSION 20.10.22 | ||
FROM cimg/base:current | ||
|
||
RUN set -x && \ | ||
apt-get update && \ | ||
apt-get -y install unzip jq gettext-base | ||
repo_version=$(if command -v lsb_release >/dev/null 2>&1; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi) && \ | ||
wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \ | ||
sudo dpkg -i packages-microsoft-prod.deb && \ | ||
rm packages-microsoft-prod.deb | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get -y install gettext-base dotnet-sdk-6.0 | ||
|
||
RUN curl -L -o /tmp/docker-$DOCKER_VERSION.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz && \ | ||
tar -xz -C /tmp -f /tmp/docker-$DOCKER_VERSION.tgz && \ | ||
mv /tmp/docker/* /usr/bin | ||
RUN dotnet tool install -g trx2junit | ||
ENV PATH="${PATH}:/home/circleci/.dotnet/tools" |
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