Skip to content

Commit 7f41128

Browse files
committed
add audiowaveform
1 parent e3474ab commit 7f41128

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

packages/cli-v3/src/Containerfile.prod

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +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-
sox \
11-
&& 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
1226

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

0 commit comments

Comments
 (0)