Skip to content

Commit 62dab7b

Browse files
committed
Install envsubst alternative (Go version)
1 parent 1146ec4 commit 62dab7b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="thespad"
1111

1212
# environment settings
13-
ARG UNIFI_BRANCH="stable" \
14-
DEBIAN_FRONTEND="noninteractive"
13+
ARG UNIFI_BRANCH="stable"
14+
ARG DEBIAN_FRONTEND="noninteractive"
15+
ARG ENVSUBST_VERSION=v1.4.2
1516

1617
RUN \
1718
echo "**** install packages ****" && \
@@ -20,8 +21,10 @@ RUN \
2021
jsvc \
2122
logrotate \
2223
openjdk-17-jre-headless \
23-
unzip \
24-
gettext && \
24+
unzip && \
25+
curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
26+
chmod +x envsubst && \
27+
mv envsubst /usr/local/bin && \
2528
echo "**** install unifi ****" && \
2629
if [ -z ${UNIFI_VERSION+x} ]; then \
2730
UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

Dockerfile.aarch64

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="thespad"
1111

1212
# environment settings
13-
ARG UNIFI_BRANCH="stable" \
14-
DEBIAN_FRONTEND="noninteractive"
13+
ARG UNIFI_BRANCH="stable"
14+
ARG DEBIAN_FRONTEND="noninteractive"
15+
ARG ENVSUBST_VERSION=v1.4.2
1516

1617
RUN \
1718
echo "**** install packages ****" && \
@@ -20,8 +21,10 @@ RUN \
2021
jsvc \
2122
logrotate \
2223
openjdk-17-jre-headless \
23-
unzip \
24-
gettext && \
24+
unzip && \
25+
curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
26+
chmod +x envsubst && \
27+
mv envsubst /usr/local/bin && \
2528
echo "**** install unifi ****" && \
2629
if [ -z ${UNIFI_VERSION+x} ]; then \
2730
UNIFI_VERSION=$(curl -sX GET http://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

0 commit comments

Comments
 (0)