npm install exiftool-vendored
Most distributions: No additional setup required
Minimal distributions (Alpine, Docker slim): install perl
# Alpine
apk add perl
# Debian/Ubuntu minimal
apt-get install perl
Use the full Node.js Docker image, not the -slim
variant:
# ✅ Good - includes perl
FROM node:18
# ❌ Bad - missing perl
FROM node:18-slim
If you must use slim images, install perl
:
FROM node:18-slim
RUN apt-get update && apt-get install -y perl && rm -rf /var/lib/apt/lists/*
FROM node:18
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
CMD ["node", "index.js"]
ExifTool creates temporary files during processing. Ensure:
After installation:
exiftool.version()
to confirm working installation