File size: 472 Bytes
bdb4179
 
 
 
 
 
c2b6603
 
bdb4179
 
 
 
4862304
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Use an official lightweight Alpine Linux image as the base
FROM alpine:latest

# Install dnsmasq and curl (for health checks)
RUN apk --no-cache add dnsmasq curl

# Create dnsmasq.conf inline
RUN printf "address=/lehrastudio.com/195.179.239.105\nlog-queries\nlisten-address=0.0.0.0\n" > /etc/dnsmasq.conf

# Expose port 7860 (the custom DNS port)
EXPOSE 7860/udp

# Command to start dnsmasq in the foreground and listen on port 7860
CMD ["dnsmasq", "-k", "--port=7860"]