Skip to content

Commit 758fa83

Browse files
committed
Refactor Dockerfile to streamline build process and ensure correct port exposure
1 parent f4b055d commit 758fa83

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

agent-manager/Dockerfile

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1+
# Use a slim Node base
12
FROM node:20-slim
23

4+
# Set working dir
35
WORKDIR /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
1211
RUN 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"]

0 commit comments

Comments
 (0)