@@ -106,11 +106,13 @@ RUN set -ex; \
106
106
; \
107
107
mkdir -p /var/www && mkdir /usr/src/default \
108
108
; \
109
- curl https://repository.monarx.com/repository/monarx/publickey/monarxpub.gpg | gpg -o /usr/share/keyrings/monarx-archive-keyring.gpg --dearmor \
110
- && echo "deb [signed-by=/usr/share/keyrings/monarx-archive-keyring.gpg] https://repository.monarx.com/repository/ubuntu-jammy/ jammy main" > /etc/apt/sources.list.d/monarx.list \
111
- ; \
112
- apt-get update \
113
- && apt-get -y install monarx-agent monarx-protect \
109
+ if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
110
+ curl https://repository.monarx.com/repository/monarx/publickey/monarxpub.gpg | gpg -o /usr/share/keyrings/monarx-archive-keyring.gpg --dearmor \
111
+ && echo "deb [signed-by=/usr/share/keyrings/monarx-archive-keyring.gpg] https://repository.monarx.com/repository/ubuntu-jammy/ jammy main" > /etc/apt/sources.list.d/monarx.list \
112
+ ; \
113
+ apt-get update \
114
+ && apt-get -y install monarx-agent monarx-protect; \
115
+ fi \
114
116
; \
115
117
mkdir -p /etc/service/php-fpm \
116
118
&& mkdir -p /etc/service/postfix \
@@ -133,8 +135,14 @@ RUN cd /usr/src; \
133
135
&& echo "extension=redis.so" > /etc/php/$php_version/mods-available/redis.ini \
134
136
&& /usr/sbin/phpenmod redis \
135
137
; \
138
+ if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
139
+ RELAY_ARCH="x86-64" ; \
140
+ else \
141
+ RELAY_ARCH="aarch64" ; \
142
+ fi \
143
+ ; \
136
144
RELAY_VERSION=$(curl -fs -L https://builds.r2.relay.so/meta/latest | awk -F '"' '{print $1}' ) \
137
- && wget -O /tmp/relay.tar.gz "https://builds.r2.relay.so/$RELAY_VERSION/relay-$RELAY_VERSION-php${php_version}-debian-x86-64 %2Blibssl3.tar.gz" \
145
+ && wget -O /tmp/relay.tar.gz "https://builds.r2.relay.so/${ RELAY_VERSION} /relay-${ RELAY_VERSION} -php${php_version}-debian-${RELAY_ARCH} %2Blibssl3.tar.gz" \
138
146
&& tar -xzf /tmp/relay.tar.gz -C /usr/src \
139
147
&& mv /usr/src/relay-* /usr/src/relay \
140
148
&& sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" /usr/src/relay/relay-pkg.so \
0 commit comments