Skip to content

Commit 1090898

Browse files
authored
Add WithNode flavor for Alpine 3.18 (#981)
2 parents b381922 + fa79f62 commit 1090898

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.18-local
2+
3+
RUN apk update && apk add --no-cache nodejs npm
4+
5+
# Add label for bring your own node in azure devops
6+
LABEL "com.azure.dev.pipelines.agent.handler.node.path"="/usr/bin/node"
7+
8+
ENV NO_UPDATE_NOTIFIER=true
9+
10+
# Set node as a default command
11+
CMD [ "node" ]

src/alpine/3.18/amd64/Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM alpine:3.18
2+
3+
# Install .NET and test dependencies
4+
RUN apk update && apk add --no-cache \
5+
autoconf \
6+
automake \
7+
bash \
8+
build-base \
9+
clang \
10+
clang-dev \
11+
cmake \
12+
coreutils \
13+
curl \
14+
elfutils \
15+
file \
16+
gcc \
17+
gettext-dev \
18+
git \
19+
icu-data-full \
20+
icu-dev \
21+
jq \
22+
krb5-dev \
23+
libtool \
24+
libunwind-dev \
25+
linux-headers \
26+
lld \
27+
lldb-dev \
28+
llvm \
29+
lttng-ust-dev \
30+
make \
31+
numactl-dev \
32+
openssl \
33+
openssl-dev \
34+
paxctl \
35+
py3-lldb \
36+
python3-dev \
37+
shadow \
38+
sudo \
39+
tzdata \
40+
util-linux-dev \
41+
which \
42+
zlib-dev

src/alpine/manifest.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,35 @@
205205
}
206206
]
207207
},
208+
{
209+
"platforms": [
210+
{
211+
"dockerfile": "src/alpine/3.18/amd64",
212+
"os": "linux",
213+
"osVersion": "alpine3.18",
214+
"tags": {
215+
"alpine-3.18-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
216+
"alpine-3.18$(FloatingTagSuffix)": {},
217+
"alpine-3.18-local": {
218+
"isLocal": true
219+
}
220+
}
221+
}
222+
]
223+
},
224+
{
225+
"platforms": [
226+
{
227+
"dockerfile": "src/alpine/3.18/WithNode/amd64",
228+
"os": "linux",
229+
"osVersion": "alpine3.18",
230+
"tags": {
231+
"alpine-3.18-WithNode-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {},
232+
"alpine-3.18-WithNode$(FloatingTagSuffix)": {}
233+
}
234+
}
235+
]
236+
},
208237
{
209238
"platforms": [
210239
{

0 commit comments

Comments
 (0)