Skip to content

Commit fccf590

Browse files
committed
fix: update dockerfile for arm build
1 parent aab7ca1 commit fccf590

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/helpers/docker/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ FROM ubuntu:bionic-20200219 AS tmp
22
WORKDIR /build
33
RUN apt-get update && apt-get install -y curl wget zip
44

5-
RUN wget https://github.com/supertokens/jre/raw/refs/heads/feat/jre21/jre-21.0.7-linux.zip
6-
RUN unzip jre-21.0.7-linux.zip
5+
RUN ARCH=$(dpkg --print-architecture) && \
6+
if [ "$ARCH" = "amd64" ]; then \
7+
wget https://github.com/supertokens/jre/raw/refs/heads/master/jre-21.0.7-linux.zip; \
8+
elif [ "$ARCH" = "arm64" ]; then \
9+
wget https://github.com/supertokens/jre/raw/refs/heads/master/jre-21.0.7-linux-aarch.zip; \
10+
else \
11+
echo "Unsupported architecture: $ARCH" && exit 1; \
12+
fi
13+
RUN unzip jre-21.0.7-linux*.zip
714
RUN mv jre-21.0.7 jre
815
ADD ./cli ./cli
916
ADD ./core ./core

0 commit comments

Comments
 (0)