Skip to content

Commit d3ee3a1

Browse files
authored
Merge pull request #796 from rarepepi/docker-fix
fix: Docker default non-interactive mode for Cloud instances
2 parents 3ac8116 + e30a734 commit d3ee3a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts
5252
COPY --from=builder /app/characters ./characters
5353

5454
# Set the command to run the application
55-
CMD ["pnpm", "start"]
55+
CMD ["pnpm", "start", "--non-interactive"]

agent/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ const startAgents = async () => {
485485
}
486486

487487
elizaLogger.log("Chat started. Type 'exit' to quit.");
488-
chat();
488+
if (!args["non-interactive"]) {
489+
chat();
490+
}
489491
};
490492

491493
startAgents().catch((error) => {

0 commit comments

Comments
 (0)