LINE bot bringing Hugging Face AI (chat, image gen/edit, video) to LINE. .NET 10, run via Docker.
1.0K
A LINE bot that uses Hugging Face models for AI chat, image generation & editing, image Q&A, and video generation โ built on ASP.NET (.NET 10). Run this image on your PC (exposed through a tunnel) or on a cloud host, connect it to a LINE Messaging API channel, and chat with Hugging Face models straight from LINE.
latest โ the most recent release1.2.3, 1.2 โ pinned semantic-version tagsMulti-arch: linux/amd64 and linux/arm64. The runtime is an Ubuntu chiseled (distroless-style) image โ
no shell or package manager, non-root by default, minimal CVE surface.
Create a .env file (fill in your own values):
Line__ChannelSecret=<your channel secret>
Line__ChannelAccessToken=<your channel access token>
HuggingFace__ApiKey=hf_xxxxxxxxxxxxxxxxx
App__PublicBaseUrl=https://<your-public-host>
App__PublicBaseUrl is the public HTTPS URL where LINE can reach this app (a tunnel URL when running locally,
or the cloud host's HTTPS endpoint). Then:
docker run --env-file .env -p 8080:8080 pierre3/line-hf-bot:latest
curl http://localhost:8080/health # -> {"status":"ok"}
Point your LINE channel's webhook at https://<your-public-host>/webhook and start chatting.
Full walkthrough (tunnel, .env parameter reference, LINE setup, troubleshooting):
https://github.com/pierre3/line-hf-bot/blob/main/docs/deploy/docker-hub.mdโ
ยท Azure Container Apps: https://github.com/pierre3/line-hf-bot/blob/main/docs/deploy/azure-container-apps.mdโ
/image <prompt> or switch to Image mode/video <prompt> (text-to-video) and ๐ฌ Make a video from an image (image-to-video), both via fal-ai; off by defaultApp__Locale)Everything is set through environment variables (Section__Key, double underscore). The four above are the
minimum; models, providers, timeouts, and behavior all have sensible defaults. Full reference:
https://github.com/pierre3/line-hf-bot/blob/main/docs/deploy/docker-hub.md#parameter-referenceโ
App__VisionMaxTurns)./media).Full changelog: https://github.com/pierre3/line-hf-bot/blob/main/CHANGELOG.mdโ
Conversation history and generated media live only in process memory (with a TTL cache) and are lost on restart. There is no database. Run exactly one instance โ this image is not designed for horizontal scaling. See the project's Limitations section for details.
MITโ ยท ยฉ 2026 Hirotada Kobayashi
Content type
Image
Digest
sha256:b17ffa001โฆ
Size
70.9 MB
Last updated
about 1 month ago
docker pull pierre3/line-hf-bot