Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian 12 Dockerfile #1276

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ src/cbl-mariner/2.0/amd64/ @dotnet/runtime-infrastructure @dotnet/dotnet-docker-
src/centos/stream9/amd64/ @dotnet/source-build @dotnet/dotnet-docker-reviewers

# debian
src/debian/11/amd64/ @dotnet/source-build @dotnet/dotnet-docker-reviewers
src/debian/**/amd64/ @dotnet/source-build @dotnet/dotnet-docker-reviewers
src/debian/11/opt/arm64v8/ @dotnet/runtime-infrastructure @dotnet/dotnet-docker-reviewers
src/debian/12/gcc14/amd64/ @dotnet/runtime-infrastructure @dotnet/dotnet-docker-reviewers

Expand Down
60 changes: 60 additions & 0 deletions src/debian/12/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
FROM library/debian:bookworm

# Dependencies for generic .NET Core builds and the base toolchain we need to
# build anything (clang, cmake, make and the like)
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
apt-transport-https \
curl \
software-properties-common \
&& curl -sL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y \
autoconf \
automake \
azure-cli \
build-essential \
clang \
cmake \
elfutils \
file \
g++ \
gettext \
gdb \
git \
gnupg \
jq \
libcurl4-openssl-dev \
libgdiplus \
libicu-dev \
libkrb5-dev \
liblldb-dev \
liblttng-ust-dev \
libnuma-dev \
libssl-dev \
libssl3 \
libtool \
libunwind8-dev \
lldb \
llvm \
locales \
make \
pigz \
powershell \
python3-lldb \
sudo \
tar \
uuid-dev \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*

# .NET SDK MSBuild requires US.UTF-8 locale to execute tasks
# These commands are from https://askubuntu.com/a/1027038
RUN echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections \
&& echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections \
&& rm "/etc/locale.gen" \
&& dpkg-reconfigure --frontend noninteractive locales
13 changes: 13 additions & 0 deletions src/debian/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@
}
]
},
{
"platforms": [
{
"architecture": "amd64",
"dockerfile": "src/debian/12/amd64",
"os": "linux",
"osVersion": "bookworm",
"tags": {
"debian-12-amd64": {}
}
}
]
},
{
"platforms": [
{
Expand Down
Loading