File size: 1,110 Bytes
8a43ca9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use the official smanx/browser-use-web-ui image as the base.
# It is a best practice to pin to a specific version tag for reproducibility,
# but 'latest' is used here for convenience.
FROM smanx/browser-use-web-ui:latest

# Set maintainer information (optional but good practice).
LABEL maintainer="Your Name <your.email@example.com>"

# Set default environment variables for LLM APIs.
# You MUST replace the placeholder values with your actual API keys
# when you run the container.
ENV OPENAI_API_KEY="" \
    ANTHROPIC_API_KEY="" \
    GOOGLE_API_KEY=""

# Set default browser configuration variables.
ENV BROWSER_DEBUGGING_PORT="9222" \
    BROWSER_DEBUGGING_HOST="localhost" \
    BROWSER_USE_LOGGING_LEVEL="info" \
    ANONYMIZED_TELEMETRY="false" \
    KEEP_BROWSER_OPEN="false"

# Expose the ports that the application uses for the Web UI, VNC (web and direct),
# and the browser debugging interface.
EXPOSE 7788
EXPOSE 6080
EXPOSE 5901
EXPOSE 9222

# The base image already has a command to run the application, so we don't
# need to specify CMD here unless we want to override the default behavior.