Skip to content

Commit 5947df8

Browse files
authored
Merge pull request #27 from restackio/new-get-started
New Get Started
2 parents 7669e7f + 04ebe61 commit 5947df8

21 files changed

+1175
-6211
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

examples/get-started/.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# Restack Engine
1+
OPENAI_API_KEY=
2+
3+
# Deploy on Restack Cloud
24

35
RESTACK_ENGINE_ID=
46
RESTACK_ENGINE_ADDRESS=
57
RESTACK_ENGINE_API_KEY=
68

7-
# Restack Cloud
89
RESTACK_CLOUD_TOKEN=

examples/get-started/.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

examples/get-started/Dockerfile

Lines changed: 44 additions & 0 deletions
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"]

examples/get-started/bin/get-started.mjs

Lines changed: 0 additions & 736 deletions
This file was deleted.

examples/get-started/bin/get-started.ts

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)