trigger.dev 3.0.0-beta.1 → 3.0.0-beta.10
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 +11 -2
- package/dist/index.js +899 -299
- package/dist/index.js.map +1 -1
- package/dist/templates/trigger.config.ts.template +2 -1
- package/dist/workers/dev/worker-facade.js +20 -8
- package/dist/workers/prod/entry-point.js +79 -53
- package/dist/workers/prod/worker-facade.js +23 -9
- package/package.json +5 -8
package/dist/Containerfile.prod
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
FROM node:20-
|
|
1
|
+
FROM node:20-bookworm-slim@sha256:d4cdfc305abe5ea78da7167bf78263c22596dc332f2654b662890777ea166224 AS base
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ENV DEBIAN_FRONTEND=noninteractive
|
|
4
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
5
|
+
busybox \
|
|
6
|
+
dumb-init \
|
|
7
|
+
openssl \
|
|
8
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
4
9
|
|
|
10
|
+
# Create and set workdir with appropriate permissions
|
|
11
|
+
RUN mkdir /app && chown node:node /app
|
|
5
12
|
WORKDIR /app
|
|
6
13
|
|
|
7
14
|
# copy all the files just in case anything is needed in postinstall
|
|
8
15
|
COPY --chown=node:node . .
|
|
16
|
+
|
|
17
|
+
USER node
|
|
9
18
|
RUN npm ci --no-fund --no-audit && npm cache clean --force
|
|
10
19
|
|
|
11
20
|
# Development or production stage builds upon the base stage
|