Skip to content

Commit

Permalink
fix: 移除不需要的补丁
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Dec 22, 2023
1 parent 39c37db commit d2f2242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions allinone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ RUN set -ex \
&& git clone -b ${VERSION} --depth=1 https://github.com/jumpserver/jumpserver /opt/jumpserver \
&& sed -i "s@VERSION = .*@VERSION = \"${VERSION}\"@g" /opt/jumpserver/apps/jumpserver/const.py \
&& chmod +x /opt/jumpserver/entrypoint.sh \
&& rm -f /opt/jumpserver/Dockerfile /opt/jumpserver/Dockerfile-ee /opt/jumpserver/poetry.lock /opt/jumpserver/pyproject.toml \
&& rm -f /opt/jumpserver/Dockerfile \
&& rm -rf /opt/jumpserver/.git /opt/jumpserver/.github

WORKDIR /opt/jumpserver

RUN set -ex \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/Dockerfile-ce \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/Dockerfile-ee \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/poetry.lock \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/pyproject.toml \
&& cd utils \
&& bash -ixeu build.sh

Expand Down
5 changes: 1 addition & 4 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ RUN set -ex \
&& git clone -b ${VERSION} --depth=1 https://github.com/jumpserver/jumpserver /opt/jumpserver \
&& sed -i "s@VERSION = .*@VERSION = \"${VERSION}\"@g" /opt/jumpserver/apps/jumpserver/const.py \
&& chmod +x /opt/jumpserver/entrypoint.sh \
&& rm -f /opt/jumpserver/Dockerfile /opt/jumpserver/Dockerfile-ee /opt/jumpserver/poetry.lock /opt/jumpserver/pyproject.toml \
&& rm -f /opt/jumpserver/Dockerfile \
&& rm -rf /opt/jumpserver/.git /opt/jumpserver/.github

WORKDIR /opt/jumpserver

RUN set -ex \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/Dockerfile-ce \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/Dockerfile-ee \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/poetry.lock \
&& wget -q https://github.com/wojiushixiaobai/jumpserver-patch/raw/${VERSION}/core/pyproject.toml \
&& cd utils \
&& bash -ixeu build.sh

Expand Down

0 comments on commit d2f2242

Please sign in to comment.