From 80f619aa1d538447f5d146d74e407f06e486e43a Mon Sep 17 00:00:00 2001
From: Peter Lewis <peter@peterlew.is>
Date: Thu, 21 Dec 2023 19:48:49 +0000
Subject: [PATCH] Update Dockerfile

---
 Dockerfile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index b280d5ab..7c5f0a22 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,10 @@
 
 FROM docker.io/library/node:18-alpine AS build_node_modules
 
+# Hide fund and update-notifier message
+RUN npm config set -g fund false &&\
+    npm config set -g update-notifier false
+
 # Copy Web UI
 COPY src/ /app/
 WORKDIR /app
@@ -11,6 +15,10 @@ RUN npm ci
 # This saves a lot of disk space.
 FROM docker.io/library/node:18-alpine
 
+# Hide fund and update-notifier message
+RUN npm config set -g fund false &&\
+    npm config set -g update-notifier false
+
 COPY --from=build_node_modules /app /app
 
 # Move node_modules one directory up, so during development
@@ -28,9 +36,13 @@ RUN npm i -g nodemon
 # Install Linux packages
 RUN apk add -U --no-cache \
     iptables \
+    iptables-legacy \
     wireguard-tools \
     dumb-init
 
+# Symlink iptables
+RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save
+
 # Expose Ports
 EXPOSE 51820/udp
 EXPOSE 51821/tcp