git clone https://github.com/poole/lanyon.git \ lanyon && cd $_
Using Mark Otto's Lanyon seed
curl -O https://gist.githubusercontent.com/jhabdas/e0d5e3bed0316f1a5783/raw/Dockerfile curl -O https://gist.githubusercontent.com/jhabdas/e0d5e3bed0316f1a5783/raw/Gemfile curl -O https://gist.githubusercontent.com/jhabdas/e0d5e3bed0316f1a5783/raw/nginx.conf
Grab raw sources, then customize
bundle install
Creates the Gemfile.lock referenced in the Dockerfile
docker build -t webapp . docker run -d -p 80:80 webapp curl $(boot2docker ip)
git add -A && git commit -m "All the things" git archive -o app.tar.gz --prefix=app/ master scp app.tar.gz root@HOST:
ssh root@HOST tar zxvf app.tar.gz && docker build -t webapp app/ docker run -d -p 80:80 webapp
Use -d flag to run daemonized
docker stop $(docker ps -lq)
By Josh Habdas
How to host a simple Jekyll site on Docker with DigitalOcean.