File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Use a slim Node base
12FROM node:20-slim
23
4+ # Set working dir
35WORKDIR /app
46
5- # Copy hyperfy build output (needed for world-node-client.js)
6- COPY hyperfy/build ./hyperfy/build
7+ # Copy package files first for caching
8+ COPY package.json package-lock.json* ./
79
8- # Copy agent-manager
9- COPY agent-manager/package.json agent-manager/package-lock.json* ./agent-manager/
10-
11- WORKDIR /app/agent-manager
10+ # Install dependencies
1211RUN npm install --production
1312
14- COPY agent-manager/src ./src
13+ # Copy the source code (no prefix needed - context is ./agent-manager/)
14+ COPY src/ ./src/
15+
16+ # If you have other folders like examples/ or config, copy them too
17+ # COPY examples/ ./examples/
18+ # COPY .env.example ./.env.example
1519
16- EXPOSE 5000
20+ # Expose the agent-manager port (6000 as in your compose)
21+ EXPOSE 6000
1722
18- CMD ["node" , "src/index.js" ]
23+ # Run the server
24+ CMD ["node" , "src/index.js" ]
You can’t perform that action at this time.
0 commit comments