agent-chat / Dockerfile
nsarrazin's picture
nsarrazin HF staff
aaa
5c29e7b
raw
history blame
664 Bytes
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 && \
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"]