💄 improve docker module ui

This commit is contained in:
Noan
2022-08-27 00:46:36 +02:00
parent 26ce7ac895
commit 013cf45d3d
3 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
import Docker from 'dockerode';
export default class DockerSingleton extends Docker {
private static dockerInstance: DockerSingleton;
private constructor() {
super();
}
public static getInstance(): DockerSingleton {
if (!DockerSingleton.dockerInstance) {
DockerSingleton.dockerInstance = new DockerSingleton();
}
return DockerSingleton.dockerInstance;
}
}