From 62dab7b4c20c8a0b3cbac848978efd3c5afeab54 Mon Sep 17 00:00:00 2001 From: sturman <4456572+sturman@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:35:15 +0200 Subject: [PATCH] Install `envsubst` alternative (Go version) --- Dockerfile | 11 +++++++---- Dockerfile.aarch64 | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a499e44..c6d46fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA LABEL maintainer="thespad" # environment settings -ARG UNIFI_BRANCH="stable" \ -DEBIAN_FRONTEND="noninteractive" +ARG UNIFI_BRANCH="stable" +ARG DEBIAN_FRONTEND="noninteractive" +ARG ENVSUBST_VERSION=v1.4.2 RUN \ echo "**** install packages ****" && \ @@ -20,8 +21,10 @@ RUN \ jsvc \ logrotate \ openjdk-17-jre-headless \ - unzip \ - gettext && \ + unzip && \ + curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \ + chmod +x envsubst && \ + mv envsubst /usr/local/bin && \ echo "**** install unifi ****" && \ if [ -z ${UNIFI_VERSION+x} ]; then \ UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 8356967..2c5e235 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA LABEL maintainer="thespad" # environment settings -ARG UNIFI_BRANCH="stable" \ -DEBIAN_FRONTEND="noninteractive" +ARG UNIFI_BRANCH="stable" +ARG DEBIAN_FRONTEND="noninteractive" +ARG ENVSUBST_VERSION=v1.4.2 RUN \ echo "**** install packages ****" && \ @@ -20,8 +21,10 @@ RUN \ jsvc \ logrotate \ openjdk-17-jre-headless \ - unzip \ - gettext && \ + unzip && \ + curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \ + chmod +x envsubst && \ + mv envsubst /usr/local/bin && \ echo "**** install unifi ****" && \ if [ -z ${UNIFI_VERSION+x} ]; then \ UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \