Dockerfile: check static/js/admin-react.js exists

This commit is contained in:
Simon Li
2022-09-10 12:31:27 +01:00
parent a3b20bb220
commit fa33faeefa

View File

@@ -4,6 +4,11 @@ from jupyterhub._data import DATA_FILES_PATH
print(f"DATA_FILES_PATH={DATA_FILES_PATH}")
for sub_path in ("templates", "static/components", "static/css/style.min.css"):
for sub_path in (
"templates",
"static/components",
"static/css/style.min.css",
"static/js/admin-react.js",
):
path = os.path.join(DATA_FILES_PATH, sub_path)
assert os.path.exists(path), path