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.
@@ -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" ]
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node