File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " trigger.dev " : patch
3
+ ---
4
+
5
+ Add sox and audiowaveform binaries to worker images
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:labs
2
+
1
3
FROM node:21-bookworm-slim@sha256:fb82287cf66ca32d854c05f54251fca8b572149163f154248df7e800003c90b5 AS base
2
4
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
+
3
13
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
11
26
12
27
# Create and set workdir with appropriate permissions
13
28
RUN mkdir /app && chown node:node /app
You can’t perform that action at this time.
0 commit comments