Skip to content

Commit 81b82b0

Browse files
committed
build: oracle instant client
1 parent 4d35a73 commit 81b82b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile-base

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ ENV DB_CLIENT=/opt/sqlbot/db_client
3434
RUN 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

0 commit comments

Comments
 (0)