diff --git a/shadowsocks/Dockerfile b/shadowsocks/Dockerfile index 3316e19..3c39672 100644 --- a/shadowsocks/Dockerfile +++ b/shadowsocks/Dockerfile @@ -1,3 +1,8 @@ FROM ghcr.io/shadowsocks/ssserver-rust:v1.17.0 -RUN cp /data/config.json /etc/shadowsocks-rust/config.json +# Runtime script copy +WORKDIR /root +COPY run.sh run.sh +RUN chmod +x run.sh + +CMD cp /root/run.sh diff --git a/shadowsocks/run.sh b/shadowsocks/run.sh new file mode 100644 index 0000000..47abed8 --- /dev/null +++ b/shadowsocks/run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cp /data/config.json /etc/shadowsocks-rust/config.json