Add HEIC to JPEG conversion and image resizing support; update dependencies and Dockerfile

This commit is contained in:
denshooter
2026-02-22 00:17:08 +01:00
parent bf070ec47f
commit eb28501b2e
11 changed files with 481 additions and 43 deletions
+4
View File
@@ -25,6 +25,10 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
# Copy sharp native binaries (needed for HEIC→JPEG conversion)
COPY --from=builder /app/node_modules/sharp ./node_modules/sharp
COPY --from=builder /app/node_modules/@img ./node_modules/@img
RUN mkdir -p /app/data/uploads/photos /app/data/uploads/videos /app/data/uploads/music \
&& chown -R nextjs:nodejs /app/data