Spaces:
Paused
Paused
add dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:latest
|
2 |
+
|
3 |
+
WORKDIR /usr/src/app/
|
4 |
+
|
5 |
+
RUN git clone -b feat/agent_chat_react [email protected]:huggingface/huggingface.js.git && \
|
6 |
+
cd huggingface.js/packages/agents && \
|
7 |
+
npm install && \
|
8 |
+
npm run build && \
|
9 |
+
npm link && \
|
10 |
+
cd ../../..
|
11 |
+
|
12 |
+
|
13 |
+
RUN git clone -b feature/chat-agent [email protected]:nsarrazin/poc-agents.js.git && \
|
14 |
+
cd poc-agents.js && \
|
15 |
+
npm install && \
|
16 |
+
npm link @huggingface/agents
|
17 |
+
|
18 |
+
WORKDIR /usr/src/app/poc-agents.js
|
19 |
+
|
20 |
+
RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local \
|
21 |
+
npm run build
|
22 |
+
|
23 |
+
CMD ["npm", "run", "preview"]
|