oracle client 测试环境 替换为arm版本

(cherry picked from commit 097821e12b)
This commit is contained in:
sophie committed 2026-05-19 19:24:16 +08:00
1 parent 5e21ce46d1
commit fb8189ef13
5 files changed
+21 -8

No files matched your search

+3 -2
View File
@@ -25,12 +25,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
libxcb1 \
libx11-6 \
libxext6 \
libnsl2 \
libreoffice-nogui \
fonts-noto-cjk \
curl \
ca-certificates \
gnupg \
unixodbc-dev \
&& (apt-get install -y --no-install-recommends libaio1 || apt-get install -y --no-install-recommends libaio1t64) \
&& if [ ! -e /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libaio.so.1 ] && [ -e /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libaio.so.1t64 ]; then ln -s /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libaio.so.1t64 /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libaio.so.1; fi \
&& install -d -m 0755 /etc/apt/keyrings \
&& curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft-prod.gpg \
&& chmod a+r /etc/apt/keyrings/microsoft-prod.gpg \
@@ -59,8 +62,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
COPY backend/ .
RUN mkdir -p /app/docs
COPY docs/(表+字段).md /app/docs/(表+字段).md
ENV ORACLE_HOME=/app/oracle_client/instantclient_19_31
ENV LD_LIBRARY_PATH=/app/oracle_client/instantclient_19_31:/app/oracle_client:${LD_LIBRARY_PATH}
# Expose port 5000