mirror of https://github.com/jumpserver/jumpserver
perf: 配置下载路径
parent
e34aa0e084
commit
e220b8174d
13
Dockerfile
13
Dockerfile
|
@ -61,18 +61,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \
|
||||||
&& echo "zh_CN.UTF-8" | dpkg-reconfigure locales \
|
&& echo "zh_CN.UTF-8" | dpkg-reconfigure locales \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG ORACLE_LIB_MAJOR=19
|
ARG DOWNLOAD_URL=https://download.jumpserver.org
|
||||||
ARG ORACLE_LIB_MINOR=10
|
|
||||||
ENV ORACLE_FILE="instantclient-basiclite-linux.${TARGETARCH:-amd64}-${ORACLE_LIB_MAJOR}.${ORACLE_LIB_MINOR}.0.0.0dbru.zip"
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/oracle/ \
|
RUN mkdir -p /opt/oracle/ \
|
||||||
&& cd /opt/oracle/ \
|
&& cd /opt/oracle/ \
|
||||||
&& wget https://download.jumpserver.org/files/oracle/${ORACLE_FILE} \
|
&& wget ${DOWNLOAD_URL}/public/instantclient-basiclite-linux.${TARGETARCH}-19.10.0.0.0.zip \
|
||||||
&& unzip instantclient-basiclite-linux.${TARGETARCH-amd64}-19.10.0.0.0dbru.zip \
|
&& unzip instantclient-basiclite-linux.${TARGETARCH}-19.10.0.0.0.zip \
|
||||||
&& mv instantclient_${ORACLE_LIB_MAJOR}_${ORACLE_LIB_MINOR} instantclient \
|
&& sh -c "echo /opt/oracle/instantclient_19_10 > /etc/ld.so.conf.d/oracle-instantclient.conf" \
|
||||||
&& echo "/opt/oracle/instantclient" > /etc/ld.so.conf.d/oracle-instantclient.conf \
|
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& rm -f ${ORACLE_FILE}
|
&& rm -f instantclient-basiclite-linux.${TARGETARCH}-19.10.0.0.0.zip
|
||||||
|
|
||||||
WORKDIR /tmp/build
|
WORKDIR /tmp/build
|
||||||
COPY ./requirements ./requirements
|
COPY ./requirements ./requirements
|
||||||
|
|
Loading…
Reference in New Issue