Skip to content

Commit

Permalink
Merge pull request #3732 from elizaOS/hash/fix-docker
Browse files Browse the repository at this point in the history
fix docker image for ci/cd setup
  • Loading branch information
lalalune authored Mar 4, 2025
2 parents ac0ca31 + c9d7e37 commit 6a2355d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ RUN bun install
RUN bun add better-sqlite3

# Build the project
RUN turbo run build --filter=./packages/core
RUN turbo run build --filter=./packages/*
RUN bun run build:core
RUN bun run build:docker

# Create a new stage for the final image
FROM node:23.3.0-slim
Expand All @@ -57,6 +57,7 @@ COPY --from=builder /app/tsconfig.json ./
COPY --from=builder /app/turbo.json ./
COPY --from=builder /app/lerna.json ./
COPY --from=builder /app/renovate.json ./
COPY --from=builder /app/biome.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/packages ./packages
COPY --from=builder /app/scripts ./scripts
Expand All @@ -68,4 +69,4 @@ ENV NODE_ENV=production
EXPOSE 3000 5173

# Start the application
CMD ["turbo", "run", "dev", "--filter=!./packages/core", "--filter=!./packages/docs", "--concurrency=20"]
CMD ["bun", "run", "swarm"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build": "turbo run build --filter=./packages/core && turbo run build --filter=./packages/*",
"build:core": "turbo run build --filter=./packages/core",
"build:cli": "turbo run build --filter=./packages/cli && cd packages/cli && bun link",
"build:docker": "turbo run build --filter=./packages/core && turbo run build --filter=./packages/* --filter=!./packages/docs",
"start": "turbo run start --filter=!./packages/docs",
"agent": "turbo run start --filter=@elizaos/agent",
"dev": "turbo run build --filter=./packages/core && turbo run dev --filter=!./packages/core --filter=!./packages/docs --concurrency=20",
Expand Down
1 change: 1 addition & 0 deletions packages/client/src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default function Page({ agentId }: { agentId: UUID }) {
const worldId = WorldManager.getWorldId();

const { messages } = useAgentMessages(agentId);

const agentData = useAgent(agentId)?.data?.data;

const getMessageVariant = (role: string) =>
Expand Down

0 comments on commit 6a2355d

Please sign in to comment.