vercel-vm-factory 0.11.8 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/deploy-vm.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ Choosing bash or zsh adds the matching package to the generated Dockerfile when
|
|
|
78
78
|
|
|
79
79
|
Generated shell setup examples:
|
|
80
80
|
|
|
81
|
-
- Alpine + `/bin/zsh`: installs `zsh curl git`,
|
|
81
|
+
- Alpine + `/bin/zsh`: installs `zsh curl git`, clones oh-my-zsh into `/root/.oh-my-zsh`, and writes `/root/.zshrc`.
|
|
82
82
|
- Ubuntu/Debian + `/bin/bash`: installs `bash` with `apt-get`.
|
|
83
83
|
- `/bin/sh`: no extra shell package is installed.
|
|
84
84
|
|
package/deploy-vm.mjs
CHANGED
|
@@ -380,7 +380,7 @@ function makeDockerfile({ shell, tools, vmImage, vmImageName, wsShellImage }) {
|
|
|
380
380
|
const shellInstall = makeShellInstall({ shell, vmImageName });
|
|
381
381
|
const ohMyZshInstall =
|
|
382
382
|
path.basename(shell) === "zsh"
|
|
383
|
-
? `RUN
|
|
383
|
+
? `RUN git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git /root/.oh-my-zsh \\
|
|
384
384
|
&& printf '%s\\n' \\
|
|
385
385
|
'export ZSH="$HOME/.oh-my-zsh"' \\
|
|
386
386
|
'ZSH_THEME="robbyrussell"' \\
|
|
@@ -397,14 +397,14 @@ ARG VM_IMAGE=${vmImage}
|
|
|
397
397
|
|
|
398
398
|
FROM \${WS_SHELL_IMAGE} AS ws-shell
|
|
399
399
|
FROM \${VM_IMAGE} AS vm
|
|
400
|
+
ENV HOME=/root
|
|
401
|
+
ENV SHELL=${shell}
|
|
400
402
|
${shellSetup ? `\n${shellSetup}\n` : ""}
|
|
401
403
|
# wsterm already embeds the web UI; runtime config comes from environment variables.
|
|
402
404
|
COPY --from=ws-shell /app/bin/wsterm /app/bin/wsterm
|
|
403
405
|
|
|
404
406
|
WORKDIR /app
|
|
405
407
|
ENV ENABLE_SSL=false
|
|
406
|
-
ENV HOME=/root
|
|
407
|
-
ENV SHELL=${shell}
|
|
408
408
|
EXPOSE 80
|
|
409
409
|
CMD ["/app/bin/wsterm","-bind",":80","-fork","${shell}"]
|
|
410
410
|
`;
|