Skip to content

Add Dockerfile for containerized deployment#434

Open
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:feature/dockerfile
Open

Add Dockerfile for containerized deployment#434
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:feature/dockerfile

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 12, 2026

Summary

Adds a Dockerfile to enable containerized deployment of BitNet.cpp for running 1-bit LLM inference on CPU.

Changes

  • Added Dockerfile based on python:3.11-slim
  • Includes build dependencies (cmake, build-essential, git)
  • Initializes git submodules
  • Builds the project with CMake

Motivation

This resolves #433 - enables running BitNet on Kubernetes and other containerized infrastructure.

Testing

The Dockerfile can be built with:

docker build -t bitnet .

Closes #433

- Based on python:3.11-slim
- Includes cmake, build-essential, git for building
- Initializes git submodules
- Builds the project with CMake
- Adds run_inference.py to PATH

Closes microsoft#433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Dockerfile

1 participant