Skip to content

Commit c75e29a

Browse files
authored
v3: add audio binaries to worker images (#1183)
* add sox * add audiowaveform * add changeset
1 parent e5d26bd commit c75e29a

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.changeset/friendly-walls-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Add sox and audiowaveform binaries to worker images

packages/cli-v3/src/Containerfile.prod

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
1+
# syntax=docker/dockerfile:labs
2+
13
FROM node:21-bookworm-slim@sha256:fb82287cf66ca32d854c05f54251fca8b572149163f154248df7e800003c90b5 AS base
24

5+
ARG AUDIOWAVEFORM_VERSION=1.10.1
6+
ARG AUDIOWAVEFORM_CHECKSUM=sha256:00b41ea4d6e7a5b4affcfe4ac99951ec89da81a8cba40af19e9b98c3a8f9b4b8
7+
ADD --checksum=${AUDIOWAVEFORM_CHECKSUM} \
8+
# on debian major version upgrades, this url will need to be updated
9+
https://github.com/bbc/audiowaveform/releases/download/${AUDIOWAVEFORM_VERSION}/audiowaveform_${AUDIOWAVEFORM_VERSION}-1-12_amd64.deb .
10+
# errors due to missing deps are expected here, these will get fixed in the apt install step
11+
RUN dpkg -i audiowaveform_${AUDIOWAVEFORM_VERSION}-1-12_amd64.deb || true
12+
313
ENV DEBIAN_FRONTEND=noninteractive
4-
RUN apt-get update && apt-get install -y --no-install-recommends \
5-
busybox \
6-
ca-certificates \
7-
dumb-init \
8-
git \
9-
openssl \
10-
&& rm -rf /var/lib/apt/lists/*
14+
RUN apt-get update && \
15+
# required for audiowaveform
16+
apt-get --fix-broken install -y && \
17+
apt-get install -y --no-install-recommends \
18+
busybox \
19+
ca-certificates \
20+
dumb-init \
21+
git \
22+
openssl \
23+
sox \
24+
&& \
25+
rm -rf /var/lib/apt/lists/* audiowaveform*.deb
1126

1227
# Create and set workdir with appropriate permissions
1328
RUN mkdir /app && chown node:node /app

0 commit comments

Comments
 (0)