Spaces:
Paused
Paused
FROM node:latest | |
WORKDIR /usr/src/app/ | |
RUN npm install typescript pnpm -g | |
RUN git clone -b feat/agent_chat_react https://github.com/huggingface/huggingface.js.git && \ | |
cd huggingface.js && \ | |
pnpm install && \ | |
cd packages/agents && \ | |
pnpm install @huggingface/inference && \ | |
npm run build && \ | |
npm link && \ | |
cd ../../.. | |
RUN git clone -b feature/chat-agent https://github.com/nsarrazin/poc-agents.js.git && \ | |
cd poc-agents.js && \ | |
npm install && \ | |
npm link @huggingface/agents | |
WORKDIR /usr/src/app/poc-agents.js | |
RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local \ | |
npm run build | |
CMD ["npm", "run", "preview"] |