Skip to content

Commit

Permalink
Opt: container ready immediately after start
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Aug 8, 2024
1 parent f857023 commit bb182cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@ RUN cp -rf /root/antizapret/patches/etc/openvpn/server/*.conf /etc/openvpn/serve
&& chmod +x patches/*.sh \
&& git pull && ./patches/fix.sh

RUN cd /root/antizapret \
&& ./update.sh \
&& ./parse.sh

COPY ./init.sh /
ENTRYPOINT ["/init.sh"]
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ services:
volumes:
- ./client_keys/:/root/easy-rsa-ipsec/CLIENT_KEY/
- ./easyrsa3/:/root/easy-rsa-ipsec/easyrsa3/
- ./result/:/root/antizapret/result/
- ./temp/:/root/antizapret/temp/
# Some domains blocked unofficially: https://ntc.party/t/vpn/129/127
- ./config/include-hosts-custom.txt:/root/antizapret/config/include-hosts-custom.txt
- ./config/exclude-hosts-custom.txt:/root/antizapret/config/exclude-hosts-custom.txt
Expand Down
2 changes: 2 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ then
rm -rf EasyRSA-3.2.0/
fi

nohup bash -c "sleep 1; cd /root/antizapret/ && ./process.sh" &

/root/easy-rsa-ipsec/generate.sh \
&& exec /usr/sbin/init

0 comments on commit bb182cf

Please sign in to comment.