Skip to content

Commit 7d31c15

Browse files
committed
fix(ci): fix build for alpine
1 parent a4de888 commit 7d31c15

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
ARG NODE_VERSION=19-alpine
1+
ARG NODE_VERSION=22-alpine
22

33
FROM node:${NODE_VERSION}
44

55
WORKDIR /usr/src/app
66

7+
# Add alpine dependencies for 'sharp'
8+
RUN apk add --upgrade --no-cache vips-dev build-base
9+
710
COPY --chown=node:node package.json pnpm-lock.yaml ./
811

912
RUN npm i -g pnpm && pnpm install --frozen-lockfile --prod=false

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,10 @@
4747
"eslint-plugin-react": "^7.34.2",
4848
"sass": "^1.77.4",
4949
"typescript": "^5.4.5"
50+
},
51+
"pnpm": {
52+
"onlyBuiltDependencies": [
53+
"sharp"
54+
]
5055
}
5156
}

0 commit comments

Comments
 (0)