trigger.dev 3.0.0-beta.3 → 3.0.0-beta.30
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 +17 -4
- package/dist/index.js +2008 -671
- package/dist/index.js.map +1 -1
- package/dist/templates/trigger.config.ts.template +2 -1
- package/dist/workers/dev/worker-facade.js +51 -54
- package/dist/workers/dev/worker-setup.js +8 -15
- package/dist/workers/prod/entry-point.js +177 -78
- package/dist/workers/prod/worker-facade.js +63 -55
- package/dist/workers/prod/worker-setup.js +5 -20
- package/package.json +9 -14
package/dist/Containerfile.prod
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
FROM node:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
FROM node:21-bookworm-slim@sha256:fb82287cf66ca32d854c05f54251fca8b572149163f154248df7e800003c90b5 AS base
|
|
2
|
+
|
|
3
|
+
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/*
|
|
11
|
+
|
|
12
|
+
# Create and set workdir with appropriate permissions
|
|
13
|
+
RUN mkdir /app && chown node:node /app
|
|
5
14
|
WORKDIR /app
|
|
6
15
|
|
|
7
16
|
# copy all the files just in case anything is needed in postinstall
|
|
8
17
|
COPY --chown=node:node . .
|
|
18
|
+
|
|
19
|
+
USER node
|
|
9
20
|
RUN npm ci --no-fund --no-audit && npm cache clean --force
|
|
10
21
|
|
|
22
|
+
__POST_INSTALL__
|
|
23
|
+
|
|
11
24
|
# Development or production stage builds upon the base stage
|
|
12
25
|
FROM base AS final
|
|
13
26
|
|