Skip to content

Commit 7f14a16

Browse files
jsegaranindent
andcommitted
Fix Modal image build: JS SDK only has dockerfileCommands, not aptInstall/runCommands.
Generated with [Indent](https://indent.com) Co-Authored-By: Indent <noreply@indent.com>
1 parent afeda9a commit 7f14a16

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

js/demo/src/demo.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ export async function handleDemoRequest(
170170
});
171171
const image = modal.images
172172
.fromRegistry("ubuntu:24.04")
173-
.aptInstall("curl", "git", "htop", "mpv", "ca-certificates")
174-
.runCommands(
175-
`curl -fsSL ${BLIT_DEB_URL} -o /tmp/blit.deb && dpkg -i /tmp/blit.deb && rm /tmp/blit.deb`,
176-
"curl -fsSL https://opencode.ai/install | bash && ln -sf /root/.opencode/bin/opencode /usr/local/bin/opencode",
177-
"mkdir -p /home/blit",
178-
);
173+
.dockerfileCommands([
174+
"RUN apt-get update && apt-get install -y curl git htop mpv ca-certificates && rm -rf /var/lib/apt/lists/*",
175+
`RUN curl -fsSL ${BLIT_DEB_URL} -o /tmp/blit.deb && dpkg -i /tmp/blit.deb && rm /tmp/blit.deb`,
176+
"RUN curl -fsSL https://opencode.ai/install | bash && ln -sf /root/.opencode/bin/opencode /usr/local/bin/opencode",
177+
"RUN mkdir -p /home/blit",
178+
]);
179179

180180
const startupScript = [
181181
"set -e",

0 commit comments

Comments
 (0)