Hello.
OS: Alpine 3.10
Dockerfile
...
RUN set -o pipefail \
&& apk update \
&& apk add vips-dev fftw-dev build-base --update-cache \
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
--repository http://dl-3.alpinelinux.org/alpine/edge/main
...
After install 299 MB:
4150afe90f70 3 minutes ago /bin/sh -c set -o pipefail && apk update… 299MB
These packages are only needed for building, can uh be removed?
How can I reduce the size of the image?
You can just install sharp without installing dev libraries - sharp provides pre-built vips.

Use multi stage builds.
Most helpful comment
You can just install sharp without installing dev libraries - sharp provides pre-built vips.