|
1 | | -FROM codercom/example-node:ubuntu |
| 1 | +FROM codercom/enterprise-base:ubuntu |
2 | 2 |
|
3 | | -USER root |
| 3 | +ENV DENO_INSTALL=/usr/local |
| 4 | +ENV BUN_INSTALL=/usr/local |
| 5 | +ENV NODE_VERSION=22 |
4 | 6 |
|
5 | | -# npm: user-local global directory |
6 | | -RUN mkdir -p ~/.npm-global && \ |
7 | | - npm config set prefix ~/.npm-global |
| 7 | +USER root |
8 | 8 |
|
9 | | -# Apt: mc, nano, PHP 8.5 (Ondrej), GitHub CLI |
10 | | -RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \ |
11 | | - apt-get install -y --no-install-recommends mc nano tmux software-properties-common ca-certificates && \ |
| 9 | +RUN apt update && apt dist-upgrade -y && \ |
| 10 | + mkdir -p -m 755 /etc/apt/keyrings && \ |
| 11 | + apt install -y curl git wget htop jq && \ |
| 12 | + # NODE ###################################################################### |
| 13 | + curl -fsSL "https://deb.nodesource.com/setup_${NODE_VERSION}.x" | bash - && \ |
| 14 | + apt install -y nodejs && \ |
| 15 | + # PHP ####################################################################### |
12 | 16 | add-apt-repository -y ppa:ondrej/php && \ |
13 | | - apt-get update -y && \ |
14 | | - apt-get install -y --no-install-recommends \ |
| 17 | + apt update -y && \ |
| 18 | + apt install -y --no-install-recommends \ |
15 | 19 | php8.5-cli php8.5-common php8.5-curl php8.5-gd php8.5-imap php8.5-intl \ |
16 | 20 | php8.5-mailparse php8.5-mbstring php8.5-mysql php8.5-pgsql php8.5-phpdbg \ |
17 | 21 | php8.5-readline php8.5-redis php8.5-soap php8.5-sqlite3 php8.5-xml \ |
18 | 22 | php8.5-zip php8.5-bcmath php8.5-apcu php8.5-imagick && \ |
19 | | - mkdir -p -m 755 /etc/apt/keyrings && \ |
20 | | - (out=$(mktemp) && wget -nv -O"$out" https://cli.github.com/packages/githubcli-archive-keyring.gpg && \ |
21 | | - cat "$out" > /etc/apt/keyrings/githubcli-archive-keyring.gpg && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg) && \ |
| 23 | + echo 'variables_order = "EGPCS"' > /etc/php/8.5/cli/conf.d/99-coder.ini && \ |
| 24 | + # COMPOSER ################################################################## |
| 25 | + curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ |
| 26 | + # GITHUB CLI ################################################################ |
| 27 | + wget -qO /tmp/githubcli-archive-keyring.gpg https://cli.github.com/packages/githubcli-archive-keyring.gpg && \ |
| 28 | + install -D -m 644 /tmp/githubcli-archive-keyring.gpg /etc/apt/keyrings/githubcli-archive-keyring.gpg && \ |
22 | 29 | echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && \ |
23 | | - apt-get update -y && \ |
24 | | - apt-get install -y --no-install-recommends gh && \ |
25 | | - apt-get clean && rm -rf /var/lib/apt/lists/* |
26 | | - |
27 | | -# PHP: custom config |
28 | | -RUN echo 'variables_order = "EGPCS"' > /etc/php/8.5/cli/conf.d/99-coder.ini |
29 | | - |
30 | | -# Composer (system-wide) |
31 | | -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
32 | | - |
33 | | -# Deno (system-wide) |
34 | | -ENV DENO_INSTALL=/usr/local |
35 | | -RUN curl -fsSL https://deno.land/install.sh | sh |
36 | | - |
37 | | -# Bun (system-wide) |
38 | | -ENV BUN_INSTALL=/usr/local |
39 | | -RUN curl -fsSL https://bun.sh/install | bash |
40 | | - |
41 | | -# Claude CLI |
42 | | -RUN curl -fsSL https://claude.ai/install.sh | bash || true && \ |
| 30 | + apt update -y && \ |
| 31 | + apt install -y --no-install-recommends gh && \ |
| 32 | + # DENO ###################################################################### |
| 33 | + curl -fsSL https://deno.land/install.sh | sh && \ |
| 34 | + # BUN ####################################################################### |
| 35 | + curl -fsSL https://bun.sh/install | bash && \ |
| 36 | + # CLAUDE #################################################################### |
| 37 | + (curl -fsSL https://claude.ai/install.sh | bash || true) && \ |
43 | 38 | if [ -f /root/.local/bin/claude ]; then cp /root/.local/bin/claude /usr/local/bin/claude && chmod +x /usr/local/bin/claude; fi && \ |
44 | | - if [ -f /root/bin/claude ]; then cp /root/bin/claude /usr/local/bin/claude && chmod +x /usr/local/bin/claude; fi |
45 | | - |
46 | | -# OpenCode CLI |
47 | | -RUN curl -fsSL https://opencode.ai/install | bash || true && \ |
48 | | - if [ -f /root/.opencode/bin/opencode ]; then cp /root/.opencode/bin/opencode /usr/local/bin/opencode && chmod +x /usr/local/bin/opencode; fi |
49 | | - |
50 | | -# Codex |
51 | | -RUN npm install -g @openai/codex |
52 | | - |
53 | | -# Copilot |
54 | | -RUN npm install -g @github/copilot |
55 | | - |
56 | | -# Chrome dependencies |
57 | | -RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \ |
58 | | - apt-get install -y --no-install-recommends \ |
| 39 | + if [ -f /root/bin/claude ]; then cp /root/bin/claude /usr/local/bin/claude && chmod +x /usr/local/bin/claude; fi && \ |
| 40 | + # OPENCODE ################################################################## |
| 41 | + (curl -fsSL https://opencode.ai/install | bash || true) && \ |
| 42 | + if [ -f /root/.opencode/bin/opencode ]; then cp /root/.opencode/bin/opencode /usr/local/bin/opencode && chmod +x /usr/local/bin/opencode; fi && \ |
| 43 | + # NPM: CODEX, COPILOT ####################################################### |
| 44 | + npm install -g @openai/codex @github/copilot && \ |
| 45 | + # CHROME LIBS (AGENT-BROWSER) ############################################### |
| 46 | + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
59 | 47 | libnspr4 libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libatspi2.0-0 \ |
60 | 48 | libcups2t64 libxshmfence1 libgbm1 libpango-1.0-0 libpangocairo-1.0-0 \ |
61 | 49 | libasound2t64 libx11-xcb1 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \ |
62 | 50 | libxi6 libgtk-3-0t64 libcairo2 libcairo-gobject2 libgdk-pixbuf-2.0-0 \ |
63 | 51 | 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 | | - |
70 | | -# PATHS |
71 | | -RUN echo '' >> /etc/profile && \ |
72 | | - echo '# coder-env: Deno, Bun' >> /etc/profile && \ |
| 52 | + npm install -g agent-browser && \ |
| 53 | + agent-browser install && \ |
| 54 | + # PROFILE (DENO, BUN PATH) ################################################## |
| 55 | + echo '' >> /etc/profile && \ |
| 56 | + echo '# Deno, Bun' >> /etc/profile && \ |
73 | 57 | echo 'export DENO_INSTALL="${DENO_INSTALL:-/usr/local}"' >> /etc/profile && \ |
74 | 58 | echo 'export BUN_INSTALL="${BUN_INSTALL:-/usr/local}"' >> /etc/profile && \ |
75 | 59 | echo '[ -d "$DENO_INSTALL/bin" ] && export PATH="$DENO_INSTALL/bin:$PATH"' >> /etc/profile && \ |
76 | | - echo '[ -d "$BUN_INSTALL/bin" ] && export PATH="$BUN_INSTALL/bin:$PATH"' >> /etc/profile |
| 60 | + echo '[ -d "$BUN_INSTALL/bin" ] && export PATH="$BUN_INSTALL/bin:$PATH"' >> /etc/profile && \ |
| 61 | + # CLEANUP ################################################################### |
| 62 | + apt clean -y && \ |
| 63 | + apt autoclean -y && \ |
| 64 | + apt remove -y wget && \ |
| 65 | + apt autoremove -y && \ |
| 66 | + rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/* |
77 | 67 |
|
78 | 68 | WORKDIR /home/coder |
79 | 69 |
|
|
0 commit comments