@@ -5,18 +5,9 @@ FROM --platform=linux/arm/v7 ${BUILDER_IMAGE} AS builder
55ARG MAINTAINER_NAME="Andrey Volk"
66ARG MAINTAINER_EMAIL="andrey@signalwire.com"
77
8- ARG CODENAME=bookworm
9- ARG ARCH=arm32
10-
11- # Credentials
12- ARG REPO_DOMAIN=freeswitch.signalwire.com
13- ARG REPO_USERNAME=user
14-
158ARG BUILD_NUMBER=42
169ARG GIT_SHA=0000000000
1710
18- ARG GPG_KEY="/usr/share/keyrings/signalwire-freeswitch-repo.gpg"
19-
2011ARG DATA_DIR=/data
2112
2213LABEL maintainer="${MAINTAINER_NAME} <${MAINTAINER_EMAIL}>"
@@ -52,31 +43,14 @@ RUN apt-get -q update \
5243
5344RUN update-ca-certificates --fresh
5445
55- RUN echo "export CODENAME=${CODENAME}" | tee ~/.env \
56- && echo "export ARCH=${ARCH}" | tee -a ~/.env \
57- && chmod +x ~/.env
58-
59- RUN . ~/.env && cat <<EOF > /etc/apt/sources.list.d/freeswitch.list
60- deb [signed-by=${GPG_KEY}] https://${REPO_DOMAIN}/repo/deb/rpi/debian-release ${CODENAME} main
61- deb-src [signed-by=${GPG_KEY}] https://${REPO_DOMAIN}/repo/deb/rpi/debian-release ${CODENAME} main
62- EOF
63-
6446RUN git config --global --add safe.directory '*' \
6547 && git config --global user.name "${MAINTAINER_NAME}" \
6648 && git config --global user.email "${MAINTAINER_EMAIL}"
6749
6850RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
69- printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
70- printf "login ${REPO_USERNAME} " >> /etc/apt/auth.conf && \
71- printf "password " >> /etc/apt/auth.conf && \
72- cat /run/secrets/REPO_PASSWORD >> /etc/apt/auth.conf && \
7351 sha512sum /run/secrets/REPO_PASSWORD && \
74- curl \
75- --fail \
76- --netrc-file /etc/apt/auth.conf \
77- --output ${GPG_KEY} \
78- https://${REPO_DOMAIN}/repo/deb/rpi/debian-release/signalwire-freeswitch-repo.gpg && \
79- file ${GPG_KEY} && \
52+ curl -sSL https://freeswitch.org/fsget | \
53+ bash -s $(cat /run/secrets/REPO_PASSWORD) prerelease && \
8054 apt-get --quiet update && \
8155 apt-get --yes --quiet install \
8256 libks2 \
0 commit comments