binary1ne commited on
Commit
8a43ca9
·
verified ·
1 Parent(s): 9e95157

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official smanx/browser-use-web-ui image as the base.
2
+ # It is a best practice to pin to a specific version tag for reproducibility,
3
+ # but 'latest' is used here for convenience.
4
+ FROM smanx/browser-use-web-ui:latest
5
+
6
+ # Set maintainer information (optional but good practice).
7
+ LABEL maintainer="Your Name <your.email@example.com>"
8
+
9
+ # Set default environment variables for LLM APIs.
10
+ # You MUST replace the placeholder values with your actual API keys
11
+ # when you run the container.
12
+ ENV OPENAI_API_KEY="" \
13
+ ANTHROPIC_API_KEY="" \
14
+ GOOGLE_API_KEY=""
15
+
16
+ # Set default browser configuration variables.
17
+ ENV BROWSER_DEBUGGING_PORT="9222" \
18
+ BROWSER_DEBUGGING_HOST="localhost" \
19
+ BROWSER_USE_LOGGING_LEVEL="info" \
20
+ ANONYMIZED_TELEMETRY="false" \
21
+ KEEP_BROWSER_OPEN="false"
22
+
23
+ # Expose the ports that the application uses for the Web UI, VNC (web and direct),
24
+ # and the browser debugging interface.
25
+ EXPOSE 7788
26
+ EXPOSE 6080
27
+ EXPOSE 5901
28
+ EXPOSE 9222
29
+
30
+ # The base image already has a command to run the application, so we don't
31
+ # need to specify CMD here unless we want to override the default behavior.