#!/bin/sh set -e json=$(cat config.json) docker build -t 18fgsa/s3-resource-simple . echo $json | docker run \ -i \ --rm \ 18fgsa/s3-resource-simple \ /opt/resource/check