From c6dce0f6fb2e28e7e40ddac1498bd67e9bb17cba Mon Sep 17 00:00:00 2001 From: "Philip H." <47042125+pheiduck@users.noreply.github.com> Date: Sun, 22 Dec 2024 14:14:01 +0100 Subject: [PATCH] Dockerfile: don't update npm to latest, fix iptables paths (#1574) * Dockerfile: don't update npm to latest It's breaking nightly builds * Dockerfile: path for iptables-legacy dosn't exist * Dockerfile: fix iptables paths * fixup: iptables-legacy * Update Dockerfile --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99f1acf6..b5341eba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,6 @@ # nodejs 20 hangs on build with armv6/armv7 FROM docker.io/library/node:18-alpine AS build_node_modules -# Update npm to latest -RUN npm install -g npm@latest - # Copy Web UI COPY src /app WORKDIR /app @@ -39,7 +36,7 @@ RUN apk add --no-cache \ wireguard-tools # Use iptables-legacy -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 +RUN update-alternatives --install /usr/sbin/iptables iptables /usr/sbin/iptables-legacy 10 --slave /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore --slave /usr/sbin/iptables-save iptables-save /usr/sbin/iptables-legacy-save # Set Environment ENV DEBUG=Server,WireGuard