Add pre-testing content for DNS.

This commit is contained in:
2023-07-29 10:49:53 -07:00
parent 26dfb608c4
commit a36060b459
5 changed files with 32 additions and 0 deletions

19
Config/DNS/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# 2023-07-29
# Create website in node container and run it.
# Using Debian testing so that we use PHP >8. Otherwise the shebangs from
# the include files (#!/usr/bin/php) show up on the website.
FROM debian:testing
# Install Dependencies
RUN apt update && apt install -y dnsmasq
# Remove Existing Config
RUN systemctl stop dnsmasq
RUN rm -rfv /etc/{hosts,resolv.conf,dnsmasq.conf}
# Copy Configuration Files
COPY ./config/{hosts,resolv.conf,dnsmasq.conf} /etc/
# Start Container
CMD systemctl restart dnsmasq