jameshns commited on
Commit
cde38ea
·
verified ·
1 Parent(s): 24a7a37

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -2
Dockerfile CHANGED
@@ -6,8 +6,21 @@ FROM python
6
  RUN useradd -m -u 1000 user
7
  #run chattr -i /etc/resolv.conf
8
 
9
- RUN mkdir /etc/dhcp/
10
- RUN echo 'supersede domain-name-servers 8.8.8.8;' > /etc/dhcp/dhclient.conf
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  #RUN echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
13
 
 
6
  RUN useradd -m -u 1000 user
7
  #run chattr -i /etc/resolv.conf
8
 
9
+ #RUN mkdir /etc/dhcp/
10
+ #RUN echo 'supersede domain-name-servers 8.8.8.8;' > /etc/dhcp/dhclient.conf
11
+
12
+ RUN apt-get install -y -q dnsmasq
13
+ RUN echo 'listen-address=127.0.0.1' >> /etc/dnsmasq.conf
14
+ RUN echo 'resolv-file=/etc/resolv.dnsmasq.conf' >> /etc/dnsmasq.conf
15
+ RUN echo 'conf-dir=/etc/dnsmasq.d' >> /etc/dnsmasq.conf
16
+ RUN echo 'user=root' >> /etc/dnsmasq.conf
17
+ RUN echo 'nameserver 8.8.8.8' >> /etc/resolv.dnsmasq.conf
18
+ RUN echo 'nameserver 8.8.4.4' >> /etc/resolv.dnsmasq.conf
19
+ RUN echo 'address="/mydomain/127.0.6.1"' >> /etc/dnsmasq.d/0hosts
20
+ RUN service dnsmasq start
21
+
22
+
23
+
24
 
25
  #RUN echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
26