Dockerfile set-up to enhance ttyd
with useful installed applications. This is
mostly useful only in environments where the filesystem on Docker container is
readonly, or if user cannot be root
.
Currently the following CLI commands are preinstalled:
curl
wget
python3
ruby
(irb
)vim
See here.
docker build -t ubuntu \
--build-arg "DOCKER_TAG=1.5.2" \
ubuntu/
docker build -t alpine \
--build-arg "DOCKER_TAG=1.5.2-alpine" \
alpine/
For Linux user, you can download Tera CLI v0.2 at
https://github.com/guangie88/tera-cli/releases and place it in PATH
.
Otherwise, you will need cargo
, which can be installed via
rustup.
Once cargo
is installed, simply run cargo install tera-cli --version=^0.2.0
.
Thanks to the original author of ttyd
for
making such a great application!