diff --git a/Dockerfile b/Dockerfile index 0fd49b926c7..a16b33ac0c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts COPY --from=builder /app/characters ./characters # Set the command to run the application -CMD ["pnpm", "start"] \ No newline at end of file +CMD ["pnpm", "start", "--non-interactive"] diff --git a/agent/src/index.ts b/agent/src/index.ts index ab888ec2f28..c2174f2903f 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -485,7 +485,9 @@ const startAgents = async () => { } elizaLogger.log("Chat started. Type 'exit' to quit."); - chat(); + if (!args["non-interactive"]) { + chat(); + } }; startAgents().catch((error) => {