diff --git a/Dockerfile b/Dockerfile index ee18847fb575dea6ed69c9c17f988a07fadb7ff3..2eeca48b57a816ffd4369153c72b0aba0fd27d3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,20 @@ RUN pip install "datasets>=4.5.0" "Pillow>=12.0.0" COPY --chown=user demo.py ./demo.py COPY --chown=user .hyperview ./.hyperview +COPY --chown=user static ./static + +RUN python - <<'PY' +from pathlib import Path +import shutil + +import hyperview.server.app as app + +destination = Path(app.__file__).parent / "static" +if destination.exists(): + shutil.rmtree(destination) +shutil.copytree("static", destination) +print("Installed HyperView static frontend at", destination) +PY ENV HYPERVIEW_HOST=0.0.0.0 \ HYPERVIEW_PORT=7860 \ diff --git a/static/404.html b/static/404.html new file mode 100644 index 0000000000000000000000000000000000000000..9a951b568595a87897849f6df09c8bc77b1ad7fe --- /dev/null +++ b/static/404.html @@ -0,0 +1 @@ +