Skip to content

Commit

Permalink
return to node 20 slim, --ignore-engines
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed May 15, 2024
1 parent d792e26 commit 74081b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 . .

Expand Down

0 comments on commit 74081b8

Please sign in to comment.