Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/lib/src/core/templates/dockerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ RUN claude --version
RUN npm install -g @google/gemini-cli@latest --force
RUN gemini --version`

const openCodeVersion = "1.2.27"

const renderDockerfileOpenCode = (): string =>
`# Tooling: OpenCode (binary)
RUN set -eu; \
for attempt in 1 2 3 4 5; do \
if curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 https://opencode.ai/install \
| HOME=/usr/local bash -s -- --no-modify-path; then \
| HOME=/usr/local bash -s -- --version ${openCodeVersion} --no-modify-path; then \
exit 0; \
fi; \
echo "opencode install attempt \${attempt} failed; retrying..." >&2; \
Expand Down Expand Up @@ -225,7 +227,7 @@ RUN mkdir -p ${config.targetDir} \
&& if [ "${config.targetDir}" != "/" ]; then chown -R 1000:1000 "${config.targetDir}"; fi

COPY entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
RUN sed -i 's/\\r$//' /entrypoint.sh && chmod +x /entrypoint.sh

EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]`
Expand Down
Loading