Spaces:
Runtime error
Runtime error
WIP
Browse files- Dockerfile +7 -2
- package.json +1 -1
Dockerfile
CHANGED
@@ -16,8 +16,13 @@ COPY langgraph.json ./
|
|
16 |
# Install dependencies using pnpm
|
17 |
RUN pnpm install
|
18 |
|
19 |
-
# Create
|
20 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
# Expose the port
|
23 |
EXPOSE 7860
|
|
|
16 |
# Install dependencies using pnpm
|
17 |
RUN pnpm install
|
18 |
|
19 |
+
# Create necessary directories and files for LangGraph
|
20 |
+
RUN mkdir -p .langgraph_api && \
|
21 |
+
touch .gitignore && \
|
22 |
+
touch .langgraph_api/.langgraphjs_api.checkpointer.json && \
|
23 |
+
touch .langgraph_api/.langgraphjs_api.store.json && \
|
24 |
+
chmod -R 777 .langgraph_api && \
|
25 |
+
chmod 666 .gitignore
|
26 |
|
27 |
# Expose the port
|
28 |
EXPOSE 7860
|
package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
"dev:web": "vite dev",
|
8 |
-
"dev:agent:langgraph": "pnpx @langchain/langgraph-cli dev --port
|
9 |
"dev:agent:mastra": "mastra dev --dir src/agent/mastra",
|
10 |
"build:web": "vite build",
|
11 |
"build:agent:langgraph": "pnpx @langchain/langgraph-cli build --dir src/agent/langgraph",
|
|
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
"dev:web": "vite dev",
|
8 |
+
"dev:agent:langgraph": "pnpx @langchain/langgraph-cli dev --port 7860",
|
9 |
"dev:agent:mastra": "mastra dev --dir src/agent/mastra",
|
10 |
"build:web": "vite build",
|
11 |
"build:agent:langgraph": "pnpx @langchain/langgraph-cli build --dir src/agent/langgraph",
|