jameshns commited on
Commit
5afee43
·
verified ·
1 Parent(s): e70319d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -12
Dockerfile CHANGED
@@ -8,24 +8,24 @@ RUN useradd -m -u 1000 user
8
 
9
  #RUN mkdir /etc/dhcp/
10
  #RUN echo 'supersede domain-name-servers 8.8.8.8;' > /etc/dhcp/dhclient.conf
11
- RUN apt-get update
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
- expose 53
23
 
24
 
25
  #RUN echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
26
 
27
  #RUN ls -la /etc/resolv.conf
28
- #RUN cat /etc/resolv.conf
29
 
30
  USER user
31
  ENV PATH="/home/user/.local/bin:$PATH"
 
8
 
9
  #RUN mkdir /etc/dhcp/
10
  #RUN echo 'supersede domain-name-servers 8.8.8.8;' > /etc/dhcp/dhclient.conf
11
+ # RUN apt-get update
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
+ # expose 53
23
 
24
 
25
  #RUN echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
26
 
27
  #RUN ls -la /etc/resolv.conf
28
+ RUN cat /etc/resolv.conf
29
 
30
  USER user
31
  ENV PATH="/home/user/.local/bin:$PATH"