Princess3 commited on
Commit
cd8b9f4
·
verified ·
1 Parent(s): ff42ffc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -1,6 +1,14 @@
1
- # Pull and run with Docker
 
2
 
3
- docker pull agent0ai/agent-zero
4
- docker run -p 50001:80 agent0ai/agent-zero
 
5
 
6
- # Visit http://localhost:50001 to start
 
 
 
 
 
 
 
1
+ # Use the official Agent Zero image as the base
2
+ FROM agent0ai/agent-zero:latest
3
 
4
+ # Hugging Face Spaces requires port 7860 by default.
5
+ # We override the default port 80 used in the agent-zero image.
6
+ EXPOSE 7860
7
 
8
+ # Adjust the internal application to listen on 7860
9
+ # (Note: This assumes the underlying app respects the PORT env var or
10
+ # you are re-mapping the startup command)
11
+ ENV PORT=7860
12
+
13
+ # Start the application, ensuring it binds to 0.0.0.0:7860
14
+ CMD ["python", "main.py", "--port", "7860"]