Spaces:
Configuration error
Configuration error
Download Makefile from letaken-com/Bot2: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/Makefile
- Command line
-
hf download hf://spaces/letaken-com/Bot2/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/Makefile
1.23 kB
| # Get version from pyproject.toml | |
| VERSION := $(shell grep -m1 version pyproject.toml | cut -d'"' -f2) | |
| IMAGE_NAME := lfnovo/open_notebook | |
| PLATFORMS=linux/amd64,linux/arm64 | |
| database: | |
| docker compose --profile db_only up | |
| run: | |
| poetry run streamlit run app_home.py | |
| lint: | |
| poetry run python -m mypy . | |
| ruff: | |
| ruff check . --fix | |
| # buildx config for multi-plataform | |
| docker-buildx-prepare: | |
| docker buildx create --use --name multi-platform-builder || true | |
| # multi-plataform build with buildx | |
| docker-build: docker-buildx-prepare | |
| docker buildx build --pull \ | |
| --platform $(PLATFORMS) \ | |
| -t $(IMAGE_NAME):$(VERSION) \ | |
| --push \ | |
| . | |
| # Build and push combined | |
| docker-release: docker-build | |
| # Check supported platforms | |
| docker-check-platforms: | |
| docker manifest inspect $(IMAGE_NAME):$(VERSION) | |
| docker-update-latest: docker-buildx-prepare | |
| docker buildx build \ | |
| --platform $(PLATFORMS) \ | |
| -t $(IMAGE_NAME):latest \ | |
| --push \ | |
| . | |
| # Release with latest | |
| docker-release-all: docker-release docker-update-latest | |
| dev: | |
| docker compose -f docker-compose.dev.yml up --build | |
| full: | |
| docker compose -f docker-compose.full.yml up --build |