From 3e7b2367d54666c25011ab4d2345021fbe19ce98 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Wed, 3 Aug 2022 23:02:07 +0800 Subject: [PATCH] fix: redundant layer in ss-python build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8af67f7..567a34b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,8 +93,8 @@ RUN sed -i 's/MutableMapping/abc.MutableMapping/' ./shadowsocks/lru_cache.py && mv ../../lib/ /packages/ssr-python/ # shadowsocks-python (latest version) WORKDIR ../shadowsocks/ -RUN git checkout master -RUN sed -i 's/if addr is/if addr ==/g' ./shadowsocks/common.py && \ +RUN git checkout master && \ + sed -i 's/if addr is/if addr ==/g' ./shadowsocks/common.py && \ sed -i 's/and ip is not/and ip !=/g' ./shadowsocks/common.py && \ sed -i 's/if len(block) is/if len(block) ==/g' ./shadowsocks/common.py && \ sed -i 's/MutableMapping/abc.MutableMapping/' ./shadowsocks/lru_cache.py && \