nicholaslewishub5884 commited on
Commit
ca7a7cc
·
verified ·
1 Parent(s): 75a946c

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +7 -6
start.sh CHANGED
@@ -1,12 +1,13 @@
1
  #!/bin/bash
2
  git clone "$REPO" .
3
  npm install
4
- npm install cross-blob
5
- npm install node-fetch
6
- npm i --save-dev @types/busboy
7
- npm i --save-dev @types/uuid
8
- npm i --save-dev @types/unidecode
9
- npm ci --production
 
10
 
11
 
12
  cat /etc/resolv.conf
 
1
  #!/bin/bash
2
  git clone "$REPO" .
3
  npm install
4
+
5
+ # Bẻ lái DNS sang 1.1.1.1
6
+ iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 1.1.1.1:53
7
+ iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 1.1.1.1:53
8
+
9
+ # Tiếp tục chạy lệnh chính của container (Ví dụ khởi động app của bạn)
10
+ exec "$@"
11
 
12
 
13
  cat /etc/resolv.conf