Skip to content

Commit c2eb2f3

Browse files
authored
Fx: agent browser, npm global folder (#3)
1 parent 04433f2 commit c2eb2f3

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

fx/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM codercom/example-node:ubuntu
22

33
USER root
44

5+
# npm: user-local global directory
6+
RUN mkdir -p ~/.npm-global && \
7+
npm config set prefix ~/.npm-global
8+
59
# Apt: mc, nano, PHP 8.5 (Ondrej), GitHub CLI
610
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
711
apt-get install -y --no-install-recommends mc nano tmux software-properties-common ca-certificates && \
@@ -49,6 +53,20 @@ RUN npm install -g @openai/codex
4953
# Copilot
5054
RUN npm install -g @github/copilot
5155

56+
# Chrome dependencies
57+
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
58+
apt-get install -y --no-install-recommends \
59+
libnspr4 libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libatspi2.0-0 \
60+
libcups2t64 libxshmfence1 libgbm1 libpango-1.0-0 libpangocairo-1.0-0 \
61+
libasound2t64 libx11-xcb1 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
62+
libxi6 libgtk-3-0t64 libcairo2 libcairo-gobject2 libgdk-pixbuf-2.0-0 \
63+
libatk1.0-0 libxrender1 libfontconfig1 libdbus-1-3 libxcb1 libxext6 libx11-6 && \
64+
apt-get clean && rm -rf /var/lib/apt/lists/*
65+
66+
# Agent Browser: install + download Chrome
67+
RUN npm install -g agent-browser && \
68+
agent-browser install
69+
5270
# PATHS
5371
RUN echo '' >> /etc/profile && \
5472
echo '# coder-env: Deno, Bun' >> /etc/profile && \

0 commit comments

Comments
 (0)