#!/bin/bash -e cat < golang-centos7 You can then run the resulting image via: docker run EOF