|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM node:20-slim |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
python3 \ |
|
|
python3-venv \ |
|
|
curl \ |
|
|
&& npm install -g pnpm \ |
|
|
&& curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
USER node |
|
|
ENV HOME=/home/node |
|
|
|
|
|
WORKDIR $HOME/app |
|
|
|
|
|
|
|
|
COPY --chown=node . . |
|
|
|
|
|
|
|
|
RUN pnpm install --frozen-lockfile |
|
|
|
|
|
|
|
|
RUN pnpm --filter @eu-ai-act/mcp-server build |
|
|
RUN pnpm --filter @eu-ai-act/agent build |
|
|
|
|
|
|
|
|
RUN uv venv $HOME/venv && \ |
|
|
. $HOME/venv/bin/activate && \ |
|
|
uv pip install --no-cache -r apps/eu-ai-act-agent/requirements.txt |
|
|
|
|
|
|
|
|
ENV NODE_ENV=production \ |
|
|
PORT=3001 \ |
|
|
API_URL=http://localhost:3001 \ |
|
|
PUBLIC_URL=https://mcp-1st-birthday-eu-ai-act-chatgpt-mcp.hf.space \ |
|
|
CHATGPT_APP_SERVER_NAME=0.0.0.0 \ |
|
|
CHATGPT_APP_SERVER_PORT=7860 \ |
|
|
PATH=/home/node/venv/bin:$PATH \ |
|
|
VIRTUAL_ENV=/home/node/venv \ |
|
|
MCP_SERVER_PATH=/home/node/app/packages/eu-ai-act-mcp/dist/index.js |
|
|
|
|
|
WORKDIR $HOME/app/apps/eu-ai-act-agent |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
|
|
|
CMD node dist/server.js & \ |
|
|
sleep 2 && \ |
|
|
python src/chatgpt_app.py |
|
|
|
|
|
|