Skip to content

Commit

Permalink
Add Alpine 3.21 Dockerfile (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Dec 10, 2024
1 parent d16e413 commit 62395ff
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
72 changes: 72 additions & 0 deletions src/alpine/3.21/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
FROM amd64/alpine:3.21

# Install .NET and test dependencies
RUN apk add --upgrade --no-cache \
autoconf \
automake \
bash \
build-base \
brotli-dev \
ca-certificates \
clang \
clang-dev \
cmake \
coreutils \
cpio \
curl \
elfutils \
file \
gcc \
gettext-dev \
git \
icu-data-full \
icu-dev \
icu-libs \
iproute2 \
jq \
krb5-dev \
less \
libgcc \
libintl \
libssl3 \
libstdc++ \
libtool \
libunwind-dev \
linux-headers \
lld \
lldb-dev \
llvm \
lttng-ust-dev \
ncurses-terminfo-base \
make \
numactl-dev \
openssl \
openssl-dev \
paxctl \
pigz \
py3-lldb \
python3-dev \
shadow \
sudo \
tzdata \
userspace-rcu \
util-linux-dev \
which \
zlib-dev

# Install the latest non-preview powershell release.
RUN apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache lttng-ust \
&& LATEST_TAG=$(curl -L https://api.github.com/repos/powershell/powershell/releases/latest | jq -r '.tag_name') \
&& curl -L https://github.com/PowerShell/PowerShell/releases/download/$LATEST_TAG/powershell-${LATEST_TAG#*v}-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz \
&& mkdir -p /opt/microsoft/powershell \
&& tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell \
&& chmod +x /opt/microsoft/powershell/pwsh \
&& ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
&& rm -f /tmp/powershell.tar.gz

# Install azurecli from PIP
RUN azureEnv="/usr/local/share/azure-cli-env" \
&& python3 -m venv "$azureEnv" \
&& "$azureEnv/bin/python" -m pip install --upgrade setuptools \
&& "$azureEnv/bin/python" -m pip install azure-cli \
&& ln -s "$azureEnv/bin/az" /usr/local/bin/az
12 changes: 12 additions & 0 deletions src/alpine/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,18 @@
}
]
},
{
"platforms": [
{
"dockerfile": "src/alpine/3.21/amd64",
"os": "linux",
"osVersion": "alpine3.21",
"tags": {
"alpine-3.21-amd64": {}
}
}
]
},
{
"platforms": [
{
Expand Down

0 comments on commit 62395ff

Please sign in to comment.