Skip to content

Commit 66bbd8f

Browse files
committed
install opencode with bash piping
1 parent ad90077 commit 66bbd8f

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/randommm/opencode-fork:ubuntu
1+
FROM docker.io/ubuntu
22

33
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
44

@@ -9,19 +9,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
libffi-dev libssl-dev \
1010
cargo rustc golang-go \
1111
nodejs npm fd-find \
12-
jq python3-pip xclip \
12+
jq python3-pip xclip python-is-python3 \
1313
zip unzip tar gzip openssh-client \
1414
gh vim nano eza fzf shellcheck yamllint \
1515
docker.io sqlite3 postgresql-client \
16-
htop tmux \
17-
&& mkdir -p /etc/apt/keyrings \
18-
&& curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key \
16+
htop tmux
17+
18+
RUN mkdir -p /etc/apt/keyrings \
19+
&& curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key \
1920
| gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
20-
&& echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.30/deb/ /" \
21+
&& echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.30/deb/ /" \
2122
> /etc/apt/sources.list.d/kubernetes.list \
22-
&& apt-get update \
23-
&& apt-get install -y --no-install-recommends kubectl \
24-
&& ln -s /usr/bin/fdfind /usr/local/bin/fd \
25-
&& rm -rf /var/lib/apt/lists/*
23+
&& apt-get update \
24+
&& apt-get install -y --no-install-recommends kubectl
25+
26+
RUN curl -fsSL https://opencode.ai/install | bash
27+
28+
ENV PATH="/root/.opencode/bin:${PATH}"
29+
30+
RUN ln -s /usr/bin/fdfind /usr/local/bin/fd
2631

2732
ENTRYPOINT ["opencode"]

0 commit comments

Comments
 (0)