chore(docker): update Dockerfile to include runtime dependencies for image processing

- Added perl, perl-image-exiftool, vips, and libheif to the Dockerfile for enhanced image processing capabilities.
- These dependencies support exiftool functionality and enable HEIF/HEIC support in libvips.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-13 00:46:25 +08:00
parent ff73de44c8
commit 9f436c63d3

View File

@@ -29,7 +29,12 @@ FROM node:lts-alpine AS runner
ENV NODE_ENV=production
WORKDIR /app
RUN apk add --no-cache perl
# Runtime deps for image processing:
# - perl: required by exiftool-vendored on Linux
# - perl-image-exiftool: provides the exiftool binary (optional but useful)
# - vips: runtime library for sharp
# - libheif: enable HEIF/HEIC support in libvips when available
RUN apk add --no-cache perl perl-image-exiftool vips libheif
COPY --from=builder /workspace/be/apps/core/dist ./dist
COPY --from=builder /workspace/be/packages/db/migrations ./migrations
COPY --from=builder /workspace/be/apps/core/docker-entrypoint.sh ./docker-entrypoint.sh