Skip to content

Commit 50ad52b

Browse files
committed
Support arm64 builds
1 parent 85e133c commit 50ad52b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ FROM node:20-bookworm
33
LABEL maintainer="[email protected]"
44

55
RUN apt-get update && apt-get -y upgrade && apt-get -y install git openssh-client rsync jq
6-
RUN cd /tmp/ && wget https://github.com/watchexec/watchexec/releases/download/v2.3.2/watchexec-2.3.2-x86_64-unknown-linux-gnu.deb && dpkg -i watchexec-2.3.2-x86_64-unknown-linux-gnu.deb
6+
RUN if [[ "$TARGETPLATFORM" -eq "linux/amd64" ]]; then \
7+
cd /tmp/ && wget https://github.com/watchexec/watchexec/releases/download/v2.3.2/watchexec-2.3.2-x86_64-unknown-linux-gnu.deb && dpkg -i watchexec-2.3.2-x86_64-unknown-linux-gnu.deb; \
8+
elif [[ "$TARGETPLATFORM" -eq "linux/arm64" ]]; then \
9+
cd /tmp/ && wget https://github.com/watchexec/watchexec/releases/download/v2.3.2/watchexec-2.3.2-aarch64-unknown-linux-gnu.deb && dpkg -i watchexec-2.3.2-aarch64-unknown-linux-gnu.deb; \
10+
else \
11+
echo "$TARGETPLATFORM not supported, check watchexec" ; \
12+
fi
713

814
ENV MU_SPARQL_ENDPOINT='http://database:8890/sparql'
915
ENV MU_APPLICATION_GRAPH='http://mu.semte.ch/application'

0 commit comments

Comments
 (0)