push runtime init

This commit is contained in:
Pierre Guillod 2023-10-22 14:29:53 +02:00
parent aac21e45cd
commit c13fc765b4
Signed by: pierre
GPG key ID: 7A64EF3E7D65F3DE
2 changed files with 8 additions and 1 deletions

View file

@ -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

2
shadowsocks/run.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/sh
cp /data/config.json /etc/shadowsocks-rust/config.json