Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# BitNet.cpp Docker Image
# For running 1-bit LLM inference on CPU

FROM python:3.11-slim

# Install build dependencies
RUN apt-get update && apt-get install -y \
cmake \
build-essential \
git \
wget \
&& rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy project files
COPY . .

# Initialize git submodules
RUN git submodule update --init --recursive

# Build the project
RUN cmake -B build && cmake --build build --config Release

# Set environment variables
ENV PYTHONPATH=/app/build/bin:$PYTHONPATH

# Default command - show help
CMD ["python3", "run_inference.py", "--help"]