merasabkuch commited on
Commit
4862304
1 Parent(s): dbc64c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -9,18 +9,13 @@ RUN mkdir -p /etc/dnsmasq.d
9
 
10
  # Create dnsmasq.conf inline
11
  RUN echo ' \
12
- # Redirect lehrastudio.com to the IP of 195.179.239.105 \n\
13
  address=/lehrastudio.com/195.179.239.105 \n\
14
- # Log DNS queries (optional) \n\
15
  log-queries \n\
16
- # Set DNSmasq to listen on all interfaces \n\
17
  listen-address=0.0.0.0 \n\
18
- # Specify the port for DNS queries \n\
19
- port=7860 \n\
20
  ' > /etc/dnsmasq.conf
21
 
22
  # Expose port 7860 (the custom DNS port)
23
  EXPOSE 7860/udp
24
 
25
- # Command to start dnsmasq in the foreground
26
- CMD ["dnsmasq", "-k"]
 
9
 
10
  # Create dnsmasq.conf inline
11
  RUN echo ' \
 
12
  address=/lehrastudio.com/195.179.239.105 \n\
 
13
  log-queries \n\
 
14
  listen-address=0.0.0.0 \n\
 
 
15
  ' > /etc/dnsmasq.conf
16
 
17
  # Expose port 7860 (the custom DNS port)
18
  EXPOSE 7860/udp
19
 
20
+ # Command to start dnsmasq in the foreground and listen on port 7860
21
+ CMD ["dnsmasq", "-k", "--port=7860"]