File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ RUN pip install --no-cache-dir --prefix=/install \
2727
2828FROM python:3.11-slim AS runtime
2929
30+ ARG OPENCODE_VERSION=1.17.15
31+
3032ENV 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/*
You can’t perform that action at this time.
0 commit comments