From 3c8726f1b0e6ca0d6c9993c40775a359e9e02839 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 6 Dec 2021 15:28:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=20collect=20static?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit perf: 使用bash 才能保证 subprocess 运行正常 --- Dockerfile | 4 +++- jms | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9cbb8e35..fd551c2e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,9 @@ RUN pip install --upgrade pip==20.2.4 setuptools==49.6.0 wheel==0.34.2 -i ${PIP_ COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver RUN mkdir -p /root/.ssh/ \ - && echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config + && echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config \ + && mv /bin/sh /bin/sh.bak \ + && ln -s /bin/bash /bin/sh RUN mkdir -p /opt/jumpserver/oracle/ \ && wget https://download.jumpserver.org/public/instantclient-basiclite-linux.x64-21.1.0.0.0.tar > /dev/null \ diff --git a/jms b/jms index 1c05f5d62..9c36788c3 100755 --- a/jms +++ b/jms @@ -113,7 +113,6 @@ def compile_i81n_file(): def upgrade_db(): collect_static() perform_db_migrate() - collect_static() def prepare():