From 8acf1aad1b339882f824882a3fcbc07c473ec8c7 Mon Sep 17 00:00:00 2001 From: Jesper Noordsij Date: Thu, 7 Dec 2023 15:01:06 +0100 Subject: [PATCH] Update to openvpn Dockerfile to Alpine 3.19 Also update build.sh in frontend to use yarn --- Dockerfile.openvpn | 2 +- frontend/build.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile.openvpn b/Dockerfile.openvpn index ce80f40..4164919 100644 --- a/Dockerfile.openvpn +++ b/Dockerfile.openvpn @@ -1,4 +1,4 @@ -FROM alpine:3.16 +FROM alpine:3.19 RUN apk add --update bash openvpn easy-rsa iptables && \ ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin && \ diff --git a/frontend/build.sh b/frontend/build.sh index cb3df01..424d6e6 100755 --- a/frontend/build.sh +++ b/frontend/build.sh @@ -1,7 +1,6 @@ #!/bin/bash -image="node:16.13.0-alpine3.12" +image="node:20-alpine" uid="$(id -u $USER)" -docker run -u $uid -w /app -v $(pwd):/app $image npm i && \ -docker run -u $uid -w /app -v $(pwd):/app $image npm run build +docker run -u $uid -w /app -v $(pwd):/app $image yarn install && yarn run build