diff --git a/docker/Dockerfile b/docker/Dockerfile index 05b4cd6..15c42eb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,8 +3,8 @@ # cant use alpine for sharp images on arm # dark thumbnails on both slim (doesn't have git) and bookworm (has git) # ARG NODE_IMAGE=node:22.1.0-bookworm -# ARG NODE_IMAGE=node:20.13.1-slim -ARG NODE_IMAGE=node:22.1.0-slim +# ARG NODE_IMAGE=node:22.1.0-slim +ARG NODE_IMAGE=node:20.13.1-slim FROM ${NODE_IMAGE} AS base WORKDIR /app @@ -20,8 +20,10 @@ COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile # handle sharp +RUN yarn why sharp RUN yarn remove sharp -RUN yarn add --arch=arm64 --platform=linux --libc=musl sharp +RUN yarn add --arch=arm64 --platform=linux --libc=musl --ignore-engines sharp +RUN yarn why sharp COPY . .