-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/return-threadId
- Loading branch information
Showing
31 changed files
with
26,722 additions
and
15,734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs | ||
spec: "@yarnpkg/plugin-version" | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.4.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
FROM node:20 as base | ||
|
||
# Setup yarn version | ||
RUN corepack enable | ||
RUN yarn set version 3.6.4 | ||
RUN corepack prepare [email protected] --activate | ||
|
||
# AFJ specifc setup | ||
WORKDIR /www | ||
ENV RUN_MODE="docker" | ||
|
||
COPY package.json yarn.lock ./ | ||
COPY package.json yarn.lock .yarnrc.yml ./ | ||
COPY .yarn/releases/ .yarn/releases/ | ||
COPY .yarn/plugins/ .yarn/plugins/ | ||
|
||
COPY packages/model/package.json packages/model/package.json | ||
COPY packages/main/package.json packages/main/package.json | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
FROM node:18 as base | ||
|
||
COPY package.json yarn.lock tsconfig.json tsconfig.build.json ./ | ||
# Setup yarn version | ||
RUN corepack enable | ||
RUN yarn set version 3.6.4 | ||
RUN corepack prepare [email protected] --activate | ||
|
||
# AFJ specifc setup | ||
WORKDIR /www | ||
ENV RUN_MODE="docker" | ||
|
||
COPY package.json yarn.lock tsconfig.json tsconfig.build.json .yarnrc.yml ./ | ||
COPY .yarn/releases/ .yarn/releases/ | ||
COPY .yarn/plugins/ .yarn/plugins/ | ||
COPY packages/model/package.json packages/model/package.json | ||
COPY packages/client/package.json packages/client/package.json | ||
|
||
|
@@ -21,22 +32,15 @@ FROM base as final | |
WORKDIR /www | ||
ENV RUN_MODE="docker" | ||
|
||
COPY examples/chatbot/package.json examples/chatbot/package.json | ||
COPY examples/chatbot/yarn.lock examples/chatbot/yarn.lock | ||
COPY examples/chatbot/ examples/chatbot/ | ||
|
||
# Run install after copying only depdendency file | ||
# to make use of docker layer caching | ||
COPY --from=base packages/model/build /www/packages/model/build | ||
COPY --from=base packages/client/build /www/packages/client/build | ||
RUN yarn --cwd examples/chatbot install | ||
|
||
|
||
# Copy other depdencies | ||
COPY examples/chatbot/index.ts examples/chatbot/index.ts | ||
COPY examples/chatbot/data.ts examples/chatbot/data.ts | ||
COPY examples/chatbot/phone-cred-def-dev.json examples/chatbot/phone-cred-def-dev.json | ||
COPY examples/chatbot/tsconfig.json examples/chatbot/tsconfig.json | ||
COPY --from=base /www/packages ./packages | ||
WORKDIR /www/examples/chatbot | ||
RUN yarn install | ||
RUN yarn build | ||
|
||
RUN yarn --cwd examples/chatbot build | ||
COPY examples/chatbot/public examples/chatbot/build/public | ||
CMD yarn --cwd examples/chatbot start | ||
WORKDIR /www/examples/chatbot | ||
CMD yarn start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.