Skip to content

Commit 4f8da80

Browse files
committed
Install envsubst alternative (Go version)
1 parent 8464213 commit 4f8da80

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LABEL maintainer="thespad"
1212
# environment settings
1313
ARG UNIFI_BRANCH="stable"
1414
ENV DEBIAN_FRONTEND="noninteractive"
15+
ENV ENVSUBST_VERSION=v1.4.3
1516

1617
RUN \
1718
echo "**** install packages ****" && \
@@ -22,6 +23,9 @@ RUN \
2223
openjdk-17-jre-headless \
2324
unzip \
2425
gettext && \
26+
curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
27+
chmod +x envsubst && \
28+
mv envsubst /usr/local/bin && \
2529
echo "**** install unifi ****" && \
2630
if [ -z ${UNIFI_VERSION+x} ]; then \
2731
UNIFI_VERSION=$(curl -sX GET https://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages.gz \

Dockerfile.aarch64

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LABEL maintainer="thespad"
1212
# environment settings
1313
ARG UNIFI_BRANCH="stable"
1414
ENV DEBIAN_FRONTEND="noninteractive"
15+
ENV ENVSUBST_VERSION=v1.4.3
1516

1617
RUN \
1718
echo "**** install packages ****" && \
@@ -22,6 +23,9 @@ RUN \
2223
openjdk-17-jre-headless \
2324
unzip \
2425
gettext && \
26+
curl -L https://github.com/a8m/envsubst/releases/download/${ENVSUBST_VERSION}/envsubst-`uname -s`-`uname -m` -o envsubst && \
27+
chmod +x envsubst && \
28+
mv envsubst /usr/local/bin && \
2529
echo "**** install unifi ****" && \
2630
if [ -z ${UNIFI_VERSION+x} ]; then \
2731
UNIFI_VERSION=$(curl -sX GET https://dl.ui.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages.gz \

0 commit comments

Comments
 (0)