trigger.dev 3.0.0-beta.0 → 3.0.0-beta.2
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 +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5520 -0
- package/dist/index.js.map +1 -0
- package/dist/templates/examples/simple.ts.template +14 -0
- package/dist/templates/trigger.config.ts.template +15 -0
- package/dist/workers/dev/worker-facade.js +177 -0
- package/dist/workers/dev/worker-setup.js +40 -0
- package/dist/workers/prod/entry-point.js +1115 -0
- package/dist/workers/prod/worker-facade.js +183 -0
- package/dist/workers/prod/worker-setup.js +35 -0
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
FROM node:20-alpine@sha256:bf77dc26e48ea95fca9d1aceb5acfa69d2e546b765ec2abfb502975f1a2d4def AS base
|
|
2
|
+
|
|
3
|
+
RUN apk add --no-cache dumb-init
|
|
4
|
+
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
# copy all the files just in case anything is needed in postinstall
|
|
8
|
+
COPY --chown=node:node . .
|
|
9
|
+
RUN npm ci --no-fund --no-audit && npm cache clean --force
|
|
10
|
+
|
|
11
|
+
# Development or production stage builds upon the base stage
|
|
12
|
+
FROM base AS final
|
|
13
|
+
|
|
14
|
+
# Use ARG for build-time variables
|
|
15
|
+
ARG TRIGGER_PROJECT_ID
|
|
16
|
+
ARG TRIGGER_DEPLOYMENT_ID
|
|
17
|
+
ARG TRIGGER_DEPLOYMENT_VERSION
|
|
18
|
+
ARG TRIGGER_CONTENT_HASH
|
|
19
|
+
ARG TRIGGER_PROJECT_REF
|
|
20
|
+
|
|
21
|
+
ENV TRIGGER_PROJECT_ID=${TRIGGER_PROJECT_ID} \
|
|
22
|
+
TRIGGER_DEPLOYMENT_ID=${TRIGGER_DEPLOYMENT_ID} \
|
|
23
|
+
TRIGGER_DEPLOYMENT_VERSION=${TRIGGER_DEPLOYMENT_VERSION} \
|
|
24
|
+
TRIGGER_CONTENT_HASH=${TRIGGER_CONTENT_HASH} \
|
|
25
|
+
TRIGGER_PROJECT_REF=${TRIGGER_PROJECT_REF} \
|
|
26
|
+
NODE_ENV=production
|
|
27
|
+
|
|
28
|
+
USER node
|
|
29
|
+
|
|
30
|
+
CMD [ "dumb-init", "node", "index.js" ]
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|