Skip to content

Commit

Permalink
Merge pull request #796 from rarepepi/docker-fix
Browse files Browse the repository at this point in the history
fix: Docker default non-interactive mode for Cloud instances
  • Loading branch information
shakkernerd authored Dec 2, 2024
2 parents 3ac8116 + e30a734 commit d3ee3a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["pnpm", "start", "--non-interactive"]
4 changes: 3 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ const startAgents = async () => {
}

elizaLogger.log("Chat started. Type 'exit' to quit.");
chat();
if (!args["non-interactive"]) {
chat();
}
};

startAgents().catch((error) => {
Expand Down

0 comments on commit d3ee3a1

Please sign in to comment.