#!/bin/sh set -e # do anything here # run the CMD [ ... ] from the dockerfile exec "$@"