Skip to content

Commit 3e679e4

Browse files
author
Jonathon Deason
committed
fix opencode install
1 parent 8f0369f commit 3e679e4

3 files changed

Lines changed: 12 additions & 22 deletions

File tree

docker/base/.bashrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
if [ -f /etc/profile.d/git-prompt.sh ]; then
33
. /etc/profile.d/git-prompt.sh
44
fi
5+
6+
alias ll='ls -alF'

docker/variants/python/Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
4949
apt-get clean && \
5050
rm -rf /var/lib/apt/lists/*
5151

52-
# ─────────────────────────────────────────────
53-
# Install opencode
54-
# The official install script places the binary
55-
# in $HOME/.opencode/bin by default.
56-
# We override OPENCODE_INSTALL_DIR so the binary
57-
# lands in /usr/local/bin and is on PATH for all
58-
# users without any extra configuration.
59-
# ─────────────────────────────────────────────
60-
RUN OPENCODE_INSTALL_DIR=/usr/local/bin \
61-
curl -fsSL https://opencode.ai/install | bash
62-
6352
# ─────────────────────────────────────────────
6453
# opencode global config
6554
# opencode resolves config from
@@ -110,6 +99,11 @@ RUN code-server --install-extension ms-python.python && \
11099
code-server --install-extension njpwerner.autodocstring && \
111100
code-server --install-extension kevinrose.vsc-python-indent
112101

102+
# ─────────────────────────────────────────────
103+
# Install opencode
104+
# ─────────────────────────────────────────────
105+
RUN curl -fsSL https://opencode.ai/install | bash
106+
113107
# ─────────────────────────────────────────────
114108
# Environment for code-server
115109
# PASSWORD – optional password for authentication

docker/variants/ts/Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
4040
apt-get clean && \
4141
rm -rf /var/lib/apt/lists/*
4242

43-
# ─────────────────────────────────────────────
44-
# Install opencode
45-
# The official install script places the binary
46-
# in $HOME/.opencode/bin by default.
47-
# We override OPENCODE_INSTALL_DIR so the binary
48-
# lands in /usr/local/bin and is on PATH for all
49-
# users without any extra configuration.
50-
# ─────────────────────────────────────────────
51-
RUN OPENCODE_INSTALL_DIR=/usr/local/bin \
52-
curl -fsSL https://opencode.ai/install | bash
53-
5443
# ─────────────────────────────────────────────
5544
# opencode global config
5645
# opencode resolves config from
@@ -102,6 +91,11 @@ RUN code-server --install-extension esbenp.prettier-vscode && \
10291
code-server --install-extension dbaeumer.vscode-eslint && \
10392
code-server --install-extension ms-vscode.vscode-typescript-tslint-plugin
10493

94+
# ─────────────────────────────────────────────
95+
# Install opencode
96+
# ─────────────────────────────────────────────
97+
RUN curl -fsSL https://opencode.ai/install | bash
98+
10599
# ─────────────────────────────────────────────
106100
# Environment for code-server
107101
# PASSWORD – optional password for authentication

0 commit comments

Comments
 (0)