File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,15 @@ FROM ubuntu:bionic-20200219 AS tmp
22WORKDIR /build
33RUN 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
714RUN mv jre-21.0.7 jre
815ADD ./cli ./cli
916ADD ./core ./core
You can’t perform that action at this time.
0 commit comments