build for arm?

This commit is contained in:
Hyatt 2024-11-10 23:42:38 -06:00
parent 5f78400080
commit e1afb91328
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -26,7 +26,7 @@ pipeline {
steps {
script {
workspace = pwd()
dockerFile = """FROM ${repository}/dockerhub/library/debian:latest as builder
dockerFile = """FROM ${repository}/dockerhub/arm64v8/debian:latest as builder
RUN apt-get update \\
&& apt-get --no-install-recommends --yes install ca-certificates curl build-essential tar pkg-config alsa-utils lame libmp3lame-dev libpulse-dev libjack-jackd2-dev libaudio-dev libasound2-dev libshout3-dev libmp3lame-dev \\
@ -36,7 +36,7 @@ RUN apt-get update \\
&& ./configure CXXFLAGS="-std=c++11" --with-pulseaudio --with-lame --with-alsa --with-jack \\
&& make
FROM ${repository}/dockerhub/library/debian:latest
FROM ${repository}/dockerhub/arm64v8/debian:latest
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
LABEL org.opencontainers.image.title="darkice"
@ -63,6 +63,9 @@ ENTRYPOINT [ "/bin/bash", "-c", "/usr/local/bin/darkice" ]
],
destination: [
"${repository}/library/darkice:latest",
],
buildArg: [
"--custom-platform=linux/arm/v8",
]
)
}