skip to content
Back to
Home Bounties CodeQL Research Advisories Get Involved Events

Blog demo server in docker

As an alternative to Codespaces for the docker lovers, this directory contains a Dockerfile.

From the root directory of the repo, run these commands to build and run the docker image.

Build the docker image:

sudo docker build ./docker-preview -t securitylab-microsite-preview --build-arg UID=`id -u`

Start the container:

sudo docker run --rm --network=host -v `pwd`:/home/blogger/securitylab-microsite -i -t securitylab-microsite-preview

Inside the container:

cd securitylab-microsite
bundle install

Now you should be able to see the preview by visiting this URL: localhost:4000