Dockerfile that stands up a Sitecore JSS 11 website on CentOS7
- SystemD
- SSHD
- SSH 7
- Vim 7.4
- Tmux 1.8
- Node.js 11
- NPM 6.5
- Git 1.8
- Python 2.7
- Man
- HTop
Build docker image with target name noreplyback/jss
docker build --rm --no-cache -t noreplyback/jss .
Run docker image noreplyback/jss:
- with short name jss
- with extended privilege and hostname jss
- map /mnt/home to home directory of host
- map cgroup to enable systemd to run properly
- open ssh port 2200
- open http port 3000
- run as daemon
docker run --privileged --hostname jss --name jss -v ~/:/mnt/home -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 2200:22 -p 3000:3000 -d noreplyback/jss
Run command with line-wrapping
docker run --privileged --hostname jss --name jss -v ~/:/mnt/home -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 2200:22 -p 3000:3000 -d noreplyback/jss