mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
fix(docker): install envsubst from source to support more targets
This commit is contained in:
parent
cad5a24fb6
commit
c01408981a
1 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
FROM golang as envsubst
|
||||||
|
|
||||||
|
ARG ENVSUBST_VERSION=v1.3.0
|
||||||
|
|
||||||
|
# envsubst from gettext can not replace env vars with default values
|
||||||
|
# this package is not available for ARM32 and we have to build it from source code
|
||||||
|
# flag -ldflags "-s -w" produces a smaller executable
|
||||||
|
RUN go install -ldflags "-s -w" -v github.com/a8m/envsubst/cmd/envsubst@${ENVSUBST_VERSION}
|
||||||
|
|
||||||
FROM php:8.2-fpm AS rootless
|
FROM php:8.2-fpm AS rootless
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
@ -75,10 +84,8 @@ RUN mkdir -p /tmp/blackfire \
|
||||||
|
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
||||||
|
COPY --from=envsubst /go/bin/envsubst /usr/local/bin/envsubst
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
COPY config/ /opt/wallabag/config/
|
COPY config/ /opt/wallabag/config/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue