Docker strapi node:18.16-alpine sharp (node-gyp) problem (SOLVED)

The problem seems to be an incompatibility with Python 3.11, but works well with Python 3.10.
The workaround that worked for me was to use FROM node:18.18-alpine3.17 or whatever alpine3.17 that works for you, as alpine 3.17 has Python 3.10 and alpine 3.18 has Python 3.11

1 Like