We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4de888 commit 7d31c15Copy full SHA for 7d31c15
Dockerfile
@@ -1,9 +1,12 @@
1
-ARG NODE_VERSION=19-alpine
+ARG NODE_VERSION=22-alpine
2
3
FROM node:${NODE_VERSION}
4
5
WORKDIR /usr/src/app
6
7
+# Add alpine dependencies for 'sharp'
8
+RUN apk add --upgrade --no-cache vips-dev build-base
9
+
10
COPY --chown=node:node package.json pnpm-lock.yaml ./
11
12
RUN npm i -g pnpm && pnpm install --frozen-lockfile --prod=false
package.json
@@ -47,5 +47,10 @@
47
"eslint-plugin-react": "^7.34.2",
48
"sass": "^1.77.4",
49
"typescript": "^5.4.5"
50
+ },
51
+ "pnpm": {
52
+ "onlyBuiltDependencies": [
53
+ "sharp"
54
+ ]
55
}
56
0 commit comments