File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ ENV DB_CLIENT=/opt/sqlbot/db_client
3434RUN apt-get update && \
3535 apt-get install -y curl unzip && \
3636 mkdir -p ${DB_CLIENT} && \
37- curl -L -o app.zip https://download.oracle.com/otn_software/linux/instantclient/2326000/instantclient-basic-linux.x64-23.26.0.0.0.zip && \
37+ if [ "$TARGETARCH" = "amd64" ]; then \
38+ echo "Building for x86_64"; \
39+ curl -L -o app.zip https://download.oracle.com/otn_software/linux/instantclient/2326000/instantclient-basic-linux.x64-23.26.0.0.0.zip; \
40+ elif [ "$TARGETARCH" = "arm64" ]; then \
41+ echo "Building for ARM64"; \
42+ curl -L -o app.zip https://download.oracle.com/otn_software/linux/instantclient/2390000/instantclient-basic-linux.arm64-23.9.0.25.07.zip; \
43+ fi && \
3844 unzip app.zip -d ${DB_CLIENT} && \
3945 rm app.zip && \
4046 mv ${DB_CLIENT}/instantclient* ${DB_CLIENT}/oracle_instant_client
You can’t perform that action at this time.
0 commit comments