Spaces:
Sleeping
Sleeping
File size: 773 Bytes
cbdbe9c 1532035 85b8a2a fa15b2d 1532035 66ae5e0 c71ec0b 0e9b05e 5c29e7b cbdbe9c fa15b2d cbdbe9c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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/inference && \
pnpm install && \
pnpm run build && \
npm link && \
cd ../.. && \
cd packages/agents && \
npm link @huggingface/inference && \
pnpm 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"] |