Skip to content

Commit

Permalink
Add useful and userland apps for Anthropic computer use demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmurdza committed Nov 1, 2024
1 parent a361791 commit a6d69d1
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 5 deletions.
49 changes: 49 additions & 0 deletions template/e2b.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,52 @@ COPY ./Xauthority /home/user/.Xauthority

COPY ./start-up.sh /
RUN chmod +x /start-up.sh

RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
build-essential \
# UI Requirements
xvfb \
xterm \
xdotool \
scrot \
imagemagick \
sudo \
mutter \
x11vnc \
# Python/pyenv reqs
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
curl \
git \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev \
# Network tools
net-tools \
netcat \
# PPA req
software-properties-common && \
# Userland apps
sudo add-apt-repository ppa:mozillateam/ppa && \
sudo apt-get install -y --no-install-recommends \
libreoffice \
firefox-esr \
x11-apps \
xpdf \
gedit \
xpaint \
tint2 \
galculator \
pcmanfm \
unzip && \
apt-get clean
9 changes: 4 additions & 5 deletions template/e2b.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This is a config for E2B sandbox template.
# You can use template ID (k0wmnzir0zuzye6dndlw) or template name (desktop) to create a sandbox:
# You can use 'template_id' (k0wmnzir0zuzye6dndlw) or 'template_name (desktop) from this config to spawn a sandbox:

# Python SDK
# from e2b import Sandbox, AsyncSandbox
# sandbox = Sandbox("desktop") # Sync sandbox
# sandbox = await AsyncSandbox.create("desktop") # Async sandbox
# from e2b import Sandbox
# sandbox = Sandbox(template='desktop')

# JS SDK
# import { Sandbox } from 'e2b'
# const sandbox = await Sandbox.create('desktop')
# const sandbox = await Sandbox.create({ template: 'desktop' })

template_id = "k0wmnzir0zuzye6dndlw"
dockerfile = "e2b.Dockerfile"
Expand Down

0 comments on commit a6d69d1

Please sign in to comment.