A practical way to manage your snippets in various programming languages.
touch database.sqlite
docker build -t snippets .
docker run --name snippets -d -p 80:80 -v ${PWD}/database.sqlite:/app/database.sqlite snippets
docker build -t snippets . \
&& docker run --rm -it -p 80:80 \
-v ${PWD}/database.sqlite:/app/database.sqlite \
-v ${PWD}/dist/:/app/dist/ \
-v ${PWD}/index.php:/app/index.php \
-v ${PWD}/view.html:/app/view.html \
snippets