-
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.
- Loading branch information
1 parent
c528a7c
commit a7a302a
Showing
4 changed files
with
28 additions
and
27 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 was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
const string image = "dotnetsdk:latest"; | ||
const string repoImage = "nikolayp/dotnetsdk:latest"; | ||
|
||
new DockerCustom("build", "-t", image, ".").TryRun(); | ||
new DockerCustom("build", "-t", image, "docker").TryRun(); | ||
new DockerCustom("login").TryRun(); | ||
new DockerCustom("tag", image, repoImage).TryRun(); | ||
new DockerCustom("image", "push", repoImage).TryRun(); |
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,24 @@ | ||
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-jammy | ||
|
||
# Docker | ||
RUN apt-get update \ | ||
&& apt-get -y install ca-certificates curl \ | ||
&& install -m 0755 -d /etc/apt/keyrings \ | ||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \ | ||
&& chmod a+r /etc/apt/keyrings/docker.asc \ | ||
&& echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | ||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | ||
tee /etc/apt/sources.list.d/docker.list > /dev/null \ | ||
&& apt-get update && apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
|
||
# .NET | ||
RUN curl -LO https://dot.net/v1/dotnet-install.sh --output ./dotnet-install.sh \ | ||
&& chmod +x ./dotnet-install.sh \ | ||
&& ./dotnet-install.sh --channel 8.0 \ | ||
&& ./dotnet-install.sh --channel 7.0 --runtime aspnetcore \ | ||
&& ./dotnet-install.sh --channel 6.0 --runtime aspnetcore \ | ||
&& rm ./dotnet-install.sh | ||
|
||
ENV DOTNET_ROOT=/root/.dotnet | ||
ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools |