diff --git a/5/alpine/Dockerfile b/5/alpine/Dockerfile index 355f2e9e..1416c2c9 100644 --- a/5/alpine/Dockerfile +++ b/5/alpine/Dockerfile @@ -4,7 +4,10 @@ FROM node:20-alpine3.22 RUN apk add --no-cache \ # add "bash" for "[[" - bash + bash \ +# install fontconfig for sharp +# https://github.com/lovell/sharp/blob/v0.34.2/docs/src/content/docs/install.md#fonts + fontconfig # grab gosu for easy step-down from root # https://github.com/tianon/gosu/releases diff --git a/5/debian/Dockerfile b/5/debian/Dockerfile index 47ba9dfd..66828d3c 100644 --- a/5/debian/Dockerfile +++ b/5/debian/Dockerfile @@ -2,6 +2,13 @@ # https://github.com/nodejs/Release (looking for "LTS") FROM node:20-bookworm-slim +RUN set -eux; \ + apt-get update; \ +# install fontconfig for sharp +# https://github.com/lovell/sharp/blob/v0.34.2/docs/src/content/docs/install.md#fonts + apt-get install -y --no-install-recommends fontconfig; \ + rm -rf /var/lib/apt/lists/* + # grab gosu for easy step-down from root # https://github.com/tianon/gosu/releases ENV GOSU_VERSION 1.19 diff --git a/6/alpine/Dockerfile b/6/alpine/Dockerfile index 5a982b1e..bf7c525f 100644 --- a/6/alpine/Dockerfile +++ b/6/alpine/Dockerfile @@ -4,7 +4,10 @@ FROM node:22-alpine3.22 RUN apk add --no-cache \ # add "bash" for "[[" - bash + bash \ +# install fontconfig for sharp +# https://github.com/lovell/sharp/blob/v0.34.2/docs/src/content/docs/install.md#fonts + fontconfig # grab gosu for easy step-down from root # https://github.com/tianon/gosu/releases diff --git a/6/debian/Dockerfile b/6/debian/Dockerfile index aeb06880..7a6eea7f 100644 --- a/6/debian/Dockerfile +++ b/6/debian/Dockerfile @@ -2,6 +2,13 @@ # https://github.com/nodejs/Release (looking for "LTS") FROM node:22-bookworm-slim +RUN set -eux; \ + apt-get update; \ +# install fontconfig for sharp +# https://github.com/lovell/sharp/blob/v0.34.2/docs/src/content/docs/install.md#fonts + apt-get install -y --no-install-recommends fontconfig; \ + rm -rf /var/lib/apt/lists/* + # grab gosu for easy step-down from root # https://github.com/tianon/gosu/releases ENV GOSU_VERSION 1.19