Spaces:
Runtime error
Runtime error
| title: My First Docker | |
| emoji: 🔮 | |
| models: ["Salesforce/blip-itm-base-coco"] | |
| datasets: [] | |
| preload_from_hub: ["Salesforce/blip-itm-base-coco"] | |
| colorFrom: purple | |
| colorTo: blue | |
| sdk: docker | |
| # sdk_version | |
| # python_version | |
| app_port: 7860 | |
| startup_duration_timeout: 30m | |
| pinned: false | |
| license: cc | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| ## Notes To myself | |
| ```bash | |
| # secret file | |
| echo "xxx" > /tmp/BUILD_USER_PASSWORD | |
| # vs. 'linux/arm64' | |
| docker buildx build . -t cantremember/hf-my-first-docker:latest \ | |
| --platform linux/amd64 \ | |
| --progress=plain --no-cache \ | |
| --secret id=BUILD_USER_PASSWORD,type=file,source=/tmp/BUILD_USER_PASSWORD \ | |
| --build-arg BUILD_USER_PASSWORD=___ | |
| docker run -it --platform linux/amd64 cantremember/hf-my-first-docker:latest bash | |
| ``` | |
| Secrets | |
| - Spaces > Settings > Variables and secrets | |
| - `BUILD_USER_PASSWORD` - Desired password for sleepbotzz user | |