sharp Docker & Self-Hosted Deployment

GitHub

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.

32,764 stars JavaScript JavaScript 101 files ยท ~54,592 tokens #avif#crop#exif#icc#image#image-processing#javascript#jpeg
1. Pull Image (DOCKERHUB) docker pull lovell/sharp:latest
2. Docker Run (1-Click Launch) docker run -d --name sharp --restart always lovell/sharp:latest
3. Podman Run podman run -d --name sharp --restart always lovell/sharp:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/lovell/sharp:latest
5. ORAS Pull (OCI Artifact) oras pull lovell/sharp:latest
test/bench/Dockerfile
FROM ubuntu:25.10
ARG BRANCH=main

# Install basic dependencies
RUN apt-get -y update && apt-get install -y build-essential curl git ca-certificates gnupg

# Install latest Node.js LTS
RUN curl -fsSL https://deb.nodesource.com/setup_24.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install -y nodejs

# Install benchmark dependencies
RUN apt-get install -y imagemagick libmagick++-dev graphicsmagick

# Install sharp
RUN mkdir /tmp/sharp
RUN cd /tmp && git clone --single-branch --branch $BRANCH https://github.com/lovell/sharp.git
RUN cd /tmp/sharp && npm install && npm run build:dist && npm run build

# Install benchmark test
RUN cd /tmp/sharp/test/bench && npm install --omit optional

RUN cat /etc/os-release | grep VERSION=
RUN node -v

WORKDIR /tmp/sharp/test/bench

CMD [ "node", "perf" ]