|
Download DOCKER.md from pigracing/sd: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/spaces/pigracing/sd/resolve/main/DOCKER.md
- Command line
-
hf download hf://spaces/pigracing/sd/DOCKER.md
-
curl -L -o DOCKER.md https://huggingface.co/spaces/pigracing/sd/resolve/main/DOCKER.md
758 Bytes
| # Docker usage | |
| Build: | |
| ```bash | |
| docker build -t deepseek-2api . | |
| ``` | |
| Run on default port 7860: | |
| ```bash | |
| docker run -d --name deepseek-2api -p 7860:7860 \ | |
| -e DS_TOKEN=your_token \ | |
| -e API_KEY=your_api_key \ | |
| deepseek-2api | |
| ``` | |
| Environment variables: | |
| - `DS_TOKEN`: DeepSeek token. Takes precedence. | |
| - `DS_EMAIL` / `DS_PASSWORD`: DeepSeek email/password fallback. | |
| - `PORT`: service port. Defaults to `7860`. | |
| - `API_KEY`: optional service API key. Leave empty to disable auth. | |
| - `USE_WASM_POW`: optional. Set to `false` to skip WASM PoW and use BigInt directly. | |
| If you have `sha3_wasm_bg.wasm`, place it in the project root before building. The Docker image will copy it. If it is absent, the service automatically falls back to the BigInt implementation. | |