-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
83 lines (68 loc) · 2.45 KB
/
Copy pathDockerfile
File metadata and controls
83 lines (68 loc) · 2.45 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
ARG UBUNTU_VERSION=25.10
FROM ubuntu:${UBUNTU_VERSION}
ARG UID
ARG USERNAME
ARG GID
ARG GROUPNAME
RUN userdel --force --remove ubuntu && \
groupadd --gid ${GID} ${GROUPNAME} && \
useradd --create-home --shell /bin/bash --gid ${GID} --uid ${UID} ${USERNAME}
RUN apt-get update && apt-get install -y \
bash-completion \
bat \
curl \
direnv \
file \
git \
jq \
python3 \
python3-pip \
shellcheck \
shfmt \
ripgrep
RUN pip install --break-system-packages \
black \
flake8 \
isort \
mypy \
pylint \
ruff \
uv
RUN curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz \
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
RUN arch=$(uname -m) && \
case "$arch" in \
x86_64|amd64) rtk_target=x86_64-unknown-linux-musl ;; \
aarch64|arm64) rtk_target=aarch64-unknown-linux-gnu ;; \
*) echo "Unsupported architecture: $arch" >&2; exit 1 ;; \
esac && \
tmp_dir=$(mktemp -d) && \
curl -fsSL "https://github.com/rtk-ai/rtk/releases/latest/download/rtk-$rtk_target.tar.gz" \
| tar -xzf - -C "$tmp_dir" && \
install -m 755 "$tmp_dir/rtk" /usr/local/bin/rtk && \
rm -rf "$tmp_dir"
RUN (type -p wget >/dev/null || (apt update && apt install wget -y)) \
&& mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& mkdir -p -m 755 /etc/apt/sources.list.d \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y \
&& rm -fr $out
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
apt update && \
apt install -y nodejs
RUN npm install -g \
@github/copilot@latest \
@google/gemini-cli@latest \
@openai/codex@latest \
opencode-ai@latest
RUN curl -fsSL https://claude.ai/install.sh | bash
RUN curl -Ls https://pkgx.sh/$(uname)/$(uname -m) -o /usr/local/bin/pkgx && \
chmod +x /usr/local/bin/pkgx
RUN curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) \
-o /usr/local/bin/nix-portable && chmod +x /usr/local/bin/nix-portable
COPY --chmod=755 contai-bootstrap /usr/local/bin/contai-bootstrap
ENV PATH="$PATH:/home/${USERNAME}/.local/bin"