#!/bin/sh set -e # /usr/share/nginx/html is a shared volume with the admin container so # published rebuilds show up without redeploying this container. On a fresh # volume it's empty, so seed it once from the image's baked-in build. if [ -z "$(ls -A /usr/share/nginx/html 2>/dev/null)" ]; then echo "Seeding /usr/share/nginx/html from baked-in default build..." cp -r /usr/share/nginx/html-default/. /usr/share/nginx/html/ fi