nicholaslewishub5884 commited on
Commit
0193c85
·
verified ·
1 Parent(s): fb70501

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y \
7
  sudo \
8
  build-essential \
9
  python3 \
 
10
  pkg-config \
11
  libssl-dev \
12
  libcairo2-dev \
@@ -19,6 +20,8 @@ RUN apt-get update && apt-get install -y \
19
 
20
  # cho node dùng sudo không password
21
  RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
 
 
22
 
23
  WORKDIR /home/node/app
24
 
 
7
  sudo \
8
  build-essential \
9
  python3 \
10
+ iptables \
11
  pkg-config \
12
  libssl-dev \
13
  libcairo2-dev \
 
20
 
21
  # cho node dùng sudo không password
22
  RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
23
+ RUN sudo iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 1.1.1.1:53
24
+ RUN sudo iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 1.1.1.1:53
25
 
26
  WORKDIR /home/node/app
27