trigger.dev 0.0.0-prerelease-20240219135254 → 0.0.0-v3-canary-20240321105132
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 +33 -0
- package/dist/index.js +3754 -1724
- package/dist/index.js.map +1 -1
- package/dist/templates/examples/simple.js +14 -0
- package/dist/templates/trigger.config.ts +15 -0
- package/dist/workers/dev/worker-facade.js +176 -0
- package/dist/workers/dev/worker-setup.js +39 -0
- package/dist/workers/prod/entry-point.js +861 -0
- package/dist/workers/prod/worker-facade.js +179 -0
- package/dist/workers/prod/worker-setup.js +35 -0
- package/package.json +29 -11
- package/dist/worker-facade.d.ts +0 -2
- package/dist/worker-facade.js +0 -188
- package/dist/worker-facade.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
FROM node:18-alpine@sha256:ca9f6cb0466f9638e59e0c249d335a07c867cd50c429b5c7830dda1bed584649 AS base
|
|
2
|
+
|
|
3
|
+
RUN apk add --no-cache dumb-init
|
|
4
|
+
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
# Install dependencies
|
|
8
|
+
COPY --chown=node:node package.json package-lock.json ./
|
|
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
|
+
# Copy the rest of the application
|
|
15
|
+
COPY --chown=node:node . .
|
|
16
|
+
|
|
17
|
+
# Use ARG for build-time variables
|
|
18
|
+
ARG TRIGGER_PROJECT_ID
|
|
19
|
+
ARG TRIGGER_DEPLOYMENT_ID
|
|
20
|
+
ARG TRIGGER_DEPLOYMENT_VERSION
|
|
21
|
+
ARG TRIGGER_CONTENT_HASH
|
|
22
|
+
ARG TRIGGER_PROJECT_REF
|
|
23
|
+
|
|
24
|
+
ENV TRIGGER_PROJECT_ID=${TRIGGER_PROJECT_ID} \
|
|
25
|
+
TRIGGER_DEPLOYMENT_ID=${TRIGGER_DEPLOYMENT_ID} \
|
|
26
|
+
TRIGGER_DEPLOYMENT_VERSION=${TRIGGER_DEPLOYMENT_VERSION} \
|
|
27
|
+
TRIGGER_CONTENT_HASH=${TRIGGER_CONTENT_HASH} \
|
|
28
|
+
TRIGGER_PROJECT_REF=${TRIGGER_PROJECT_REF} \
|
|
29
|
+
NODE_ENV=production
|
|
30
|
+
|
|
31
|
+
USER node
|
|
32
|
+
|
|
33
|
+
CMD [ "dumb-init", "node", "index.js" ]
|