Making dockerfile template actually valid