Build envsubst from go source instead of downloading outdated bin

This commit is contained in:
Gio 2024-03-18 07:05:54 +00:00
parent 61a7670840
commit ad8ab2c736

View file

@ -77,7 +77,14 @@ RUN mkdir -p /tmp/blackfire \
RUN npm install -g yarn RUN npm install -g yarn
RUN apt-get update && apt-get install -y gettext-base # RUN curl -L -o /usr/local/bin/envsubst https://github.com/a8m/envsubst/releases/download/v1.1.0/envsubst-`uname -s`-`uname -m`; \
# chmod +x /usr/local/bin/envsubst
RUN apt-get update && apt-get install -y golang
RUN go install github.com/a8m/envsubst/cmd/envsubst@v1.1.0 \
&& mv -v $HOME/go/bin/envsubst /usr/local/bin/envsubst \
&& chmod +x /usr/local/bin/envsubst
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer