Skip to content

Commit

Permalink
fix: fix a version issue that happens on the newer builds of alpine-l…
Browse files Browse the repository at this point in the history
…unix (#2063)

Originally, I stumbled on an error with `../src/pipeline.cc` where it complained about an invalid struct type.

After some searching I found the issue:
The current image used as base in the Dockerfile example links to an alpine-linux version **later** than 3.18, which has made changes in `libvips`, as discussed in this PR: [Link](nodejs/docker-node#2009)

The PR also mentions, that fixing the build to version 3.18 resolve the issue, which I also confirmed in my local setup when trying to deploy strapi through docker compose.
  • Loading branch information
raphaelluethy authored Mar 26, 2024
1 parent 8d4d386 commit 367a2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/installation/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Sample `Dockerfile`:
<TabItem value="yarn" label="yarn">

```dockerfile title="./Dockerfile"
FROM node:18-alpine
FROM node:18-alpine3.18
# Installing libvips-dev for sharp Compatibility
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev git
ARG NODE_ENV=development
Expand Down

0 comments on commit 367a2f6

Please sign in to comment.