trigger.dev 3.0.0-beta.44 → 3.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Containerfile.prod +22 -9
- package/dist/index.js +287 -111
- package/dist/index.js.map +1 -1
- package/dist/workers/dev/worker-setup.js +1 -1
- package/dist/workers/prod/entry-point.js +81 -46
- package/dist/workers/prod/worker-setup.js +1 -1
- package/package.json +6 -6
package/dist/Containerfile.prod
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
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 &&
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
@@ -19,8 +34,6 @@ COPY --chown=node:node . .
|
|
|
19
34
|
USER node
|
|
20
35
|
RUN npm ci --no-fund --no-audit && npm cache clean --force
|
|
21
36
|
|
|
22
|
-
__POST_INSTALL__
|
|
23
|
-
|
|
24
37
|
# Development or production stage builds upon the base stage
|
|
25
38
|
FROM base AS final
|
|
26
39
|
|