https://github.com/manics/binderlite-builder
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories
https://github.com/manics/binderlite-builder
Last synced: about 1 year ago
JSON representation
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories
- Host: GitHub
- URL: https://github.com/manics/binderlite-builder
- Owner: manics
- Created: 2022-07-02T20:13:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-02T20:49:59.000Z (almost 4 years ago)
- Last Synced: 2025-06-15T02:03:20.827Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo: BinderLite
[](https://github.com/manics/binderlite-builder/actions/workflows/build.yml)
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories.
This only works with very simple `requirements.txt` files.
## Build container
```
docker build -t binderlite .
```
## Build repository and serve on port 8000
```
docker run --rm -p 8000:8000 binderlite \
./build.py https://gist.github.com/manics/626496ed5c9b93e694ac006181e331ec --serve
```
## Build repository in a local mounted `build` directory
```
docker run --rm -v $PWD/build:/home/mambauser/build binderlite \
./build.py https://gist.github.com/manics/626496ed5c9b93e694ac006181e331ec
```
Serve locally (port 8000):
```
python -m http.server -d build/jl
```