Shell in a box appears to have been abandoned and no longer compiles with vaguely recent versions of OpenSSL. Additionally, due to a bug in its code there is no way to disable SSL during compilation anymore so I can't update this repo to make it build again. I'm Archiving this repo and recommend https://hub.docker.com/r/wettyoss/wetty as a replacement.
ShellInABox Dockerfiles for minimal image based on Alpine Linux
ShellInABox is a web-based terminal with which you can connect to a shell in a web browser.
I found the existing images for shellinabox too large. Most were based on some variation of Ubuntu or Debian linux and that installs way too many files and greatly increases the attack surface of any particular Docker image. To make this image as small as possible I took sukramlitt/docker-shellinabox and rebased it on Alpine Linux, a minimal Linux distribution with Busybox that looks like it was made for Docker.
- Use Dockerfile.build to build the shellinabox binary inside an Alpine Linux container
- Run the resulting container to obtain a tar.gz file with shellinabox files inside
- Build a new docker image based on a clean Alpine Linux image and install shellinabox
You can use the included build.sh script for how to build the image. After the build you can delete the gerco/shellinabox-alpine-build image as it is no longer needed.
By default, this image will connect to a shell inside a Docker container with almost no tools installed. Since this isn't particularly useful, you may want to consider building a new image based on this one that connects to an SSH host instead. See the included Dockerfile.ssh for how to do this.
There is NO security in this image, it even disables SSL in this version. To use this on the public internet would be extremely irresponsible. Either enable SSL or run this behind a reverse proxy that provides SSL. Consider yourself warned!