fix: resolve music URL 404 and revert Dockerfile to Alpine + gcompat

- Convert relative music track URLs to absolute before passing to Remotion renderer
- Reverts Dockerfile from Debian-slim back to Alpine + gcompat/libc6-compat for lighter image

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Sonnet 4.6 committed 2026-03-24 17:13:51 +01:00
1 parent aa01c7a7fd
commit eba9c9da5e
2 files changed
+24 -43

No files matched your search

+2 -1
View File
@@ -115,9 +115,10 @@ remotionRouter.post("/render", upload.fields([{ name: "images", maxCount: 4 }, {
// Music: uploaded file takes priority, else use catalog track URL directly
const musicFile = fields["music"]?.[0];
const rawMusicTrackUrl = req.body.musicTrackUrl as string | undefined;
const musicUrl: string | undefined = musicFile
? `${host}/uploads/temp/${path.basename(musicFile.path)}`
: (req.body.musicTrackUrl as string | undefined) || undefined;
: rawMusicTrackUrl?.startsWith('/') ? `${host}${rawMusicTrackUrl}` : rawMusicTrackUrl || undefined;
const fps = 30;
const totalVideoDuration = imageUrls.length * 3; // 3s per image