@Override
	public List<SupportingFile> getSupportingFiles(ServiceSpec serviceSpec, DockerfileGenContext context)
			throws HyscaleException {
		if (serviceSpec == null) {
			throw new HyscaleException(CommonErrorCode.SERVICE_SPEC_REQUIRED);
		}
		List<SupportingFile> supportingFiles = new ArrayList<>();

		BuildSpec buildSpec = serviceSpec
				.get(HyscaleSpecFields.getPath(HyscaleSpecFields.image, HyscaleSpecFields.buildSpec), BuildSpec.class);

		boolean configCmdAvailable = scriptAvailable(buildSpec.getConfigCommands(), buildSpec.getConfigCommandsScript());
		SupportingFile configFile = null;
		if (configCmdAvailable) {
			configFile = getCommandSupportFile(buildSpec.getConfigCommands(), buildSpec.getConfigCommandsScript(),
					CommandType.CONFIGURE);
			if (configFile != null) {
				supportingFiles.add(configFile);
			}
		}
		boolean runCmdAvailable = scriptAvailable(buildSpec.getRunCommands(), buildSpec.getRunCommandsScript());
		SupportingFile runCmdFile = null;
		if (runCmdAvailable) {
			runCmdFile = getCommandSupportFile(buildSpec.getRunCommands(), buildSpec.getRunCommandsScript(), CommandType.RUN);
			if (runCmdFile != null) {
				supportingFiles.add(runCmdFile);
			}
		}

		return supportingFiles;
	}
If Script provided copy it to the directory Config Script, Run Script, Init
Script In case of commands write it to script file
dockerfile-generator/dockerfile-gen-services/src/main/java/io/hyscale/dockerfile/gen/services/manager/impl/DockerScriptManagerImpl.java