Skip to content

Commit b75d298

Browse files
fix: pin opencode install in Docker build
1 parent d4fa3ee commit b75d298

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ RUN pip install --no-cache-dir --prefix=/install \
2727

2828
FROM python:3.11-slim AS runtime
2929

30+
ARG OPENCODE_VERSION=1.17.15
31+
3032
ENV PYTHONDONTWRITEBYTECODE=1 \
3133
PYTHONUNBUFFERED=1 \
3234
AGENTFIELD_SERVER=http://agentfield:8080 \
@@ -47,7 +49,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4749
git && \
4850
groupadd --gid 10001 praf && \
4951
useradd --uid 10001 --gid praf --create-home --home-dir /home/praf --shell /bin/sh praf && \
50-
su -s /bin/sh praf -c "curl -fsSL https://opencode.ai/install | bash" && \
52+
su -s /bin/sh praf -c "curl -fsSL https://opencode.ai/install | bash -s -- --version ${OPENCODE_VERSION} --no-modify-path" && \
5153
mkdir -p /workspaces /home/praf/.local/share && \
5254
chown -R praf:praf /app /workspaces /home/praf && \
5355
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)