Skip to content

Commit 550caed

Browse files
authored
Merge pull request #152 from konard/issue-151-fdbc80a12746
fix(core): escape backslash in sed CRLF-stripping command in Dockerfile template
2 parents 2f52f3d + 0f002af commit 550caed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/lib/src/core/templates/dockerfile.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ RUN claude --version
6464
RUN npm install -g @google/gemini-cli@latest --force
6565
RUN gemini --version`
6666

67+
const openCodeVersion = "1.2.27"
68+
6769
const renderDockerfileOpenCode = (): string =>
6870
`# Tooling: OpenCode (binary)
6971
RUN set -eu; \
7072
for attempt in 1 2 3 4 5; do \
7173
if curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 https://opencode.ai/install \
72-
| HOME=/usr/local bash -s -- --no-modify-path; then \
74+
| HOME=/usr/local bash -s -- --version ${openCodeVersion} --no-modify-path; then \
7375
exit 0; \
7476
fi; \
7577
echo "opencode install attempt \${attempt} failed; retrying..." >&2; \
@@ -225,7 +227,7 @@ RUN mkdir -p ${config.targetDir} \
225227
&& if [ "${config.targetDir}" != "/" ]; then chown -R 1000:1000 "${config.targetDir}"; fi
226228
227229
COPY entrypoint.sh /entrypoint.sh
228-
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
230+
RUN sed -i 's/\\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
229231
230232
EXPOSE 22
231233
ENTRYPOINT ["/entrypoint.sh"]`

0 commit comments

Comments
 (0)