Skip to content

Commit 4b8ec99

Browse files
authored
remove restack up (restackio#79)
* restack up * docekrfiles
1 parent 9ca0e58 commit 4b8ec99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+154
-3078
lines changed

audio-transcript/Dockerfile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# ------- Image ----------
2+
3+
FROM node:20-bullseye-slim AS installer
4+
5+
RUN apt-get update \
6+
&& apt-get install -y ca-certificates \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
COPY ./package.json ./app/package.json
10+
COPY ./tsconfig.json ./app/tsconfig.json
11+
12+
13+
WORKDIR /app
14+
15+
RUN npm install
16+
17+
# ------- Builder ----------
18+
19+
FROM node:20-bullseye-slim AS builder
20+
WORKDIR /app
21+
COPY --from=installer /app .
22+
COPY ./src ./src
23+
24+
RUN npm run build
25+
26+
# ------- Runner ----------
27+
28+
FROM node:20-bullseye-slim AS runner
29+
30+
RUN apt-get update \
31+
&& apt-get install -y ca-certificates \
32+
&& rm -rf /var/lib/apt/lists/*
33+
34+
RUN addgroup --system --gid 1001 service
35+
RUN adduser --system --uid 1001 service
36+
USER service
37+
38+
WORKDIR /app
39+
40+
COPY --from=builder /app .
41+
42+
ENV NODE_OPTIONS=”--max-old-space-size=4096″
43+
44+
CMD ["node", "dist/services"]

audio-transcript/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ npm run schedule
4141
```
4242

4343
Will schedule to start example workflow immediately. The code for this is on `scheduleWorkflow.ts`. In here you can see how the transcribeAndTranslateWorkflow is scheduled to be executed.
44+
45+
## Deploy on Restack Cloud
46+
47+
To deploy the application on Restack, you can create an account at [Restack Console](https://console.restack.io)

audio-transcript/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"dev": "npm run start.watch",
99
"build": "tsc --build",
1010
"clean": "rm -rf node_modules",
11-
"schedule": "ts-node ./scheduleWorkflow.ts",
12-
"schedule-retries": "ts-node ./scheduleWorkflowRetries.ts",
13-
"restack-up": "node restack_up.mjs"
11+
"schedule": "ts-node ./scheduleWorkflow.ts"
1412
},
1513
"nodemonConfig": {
1614
"execMap": {

child-workflows/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
"zod-to-json-schema": "3.23.3"
2121
},
2222
"devDependencies": {
23-
"@restackio/cloud": "^1.0.19",
24-
"dotenv-cli": "^7.4.2",
2523
"@types/node": "20.16.9",
24+
"dotenv-cli": "^7.4.2",
2625
"prettier": "3.3.3",
2726
"tsx": "4.19.2",
2827
"typescript": "5.6.3"

0 commit comments

Comments
 (0)