From ad01ee9cc6bf002ef03e201af25fb6fa184c2129 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sat, 31 Jan 2026 15:53:38 +0100 Subject: Initial commit --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ce98abe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM rust:1-bookworm AS builder +RUN cargo install --locked aichat \ + && cargo install --locked argc + +FROM debian:bookworm + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y --no-install-recommends \ + bash ca-certificates curl git jq \ + ripgrep fd-find \ + unzip zip xz-utils \ + less nano vim-tiny tmux \ + openssh-client \ + python3 python3-pip \ + nodejs npm \ + build-essential pkg-config \ + && rm -rf /var/lib/apt/lists/* + +COPY --from=builder /usr/local/cargo/bin/aichat /usr/local/bin/aichat +COPY --from=builder /usr/local/cargo/bin/argc /usr/local/bin/argc + +RUN useradd -m -s /bin/bash dev \ + && mkdir -p /work /projects \ + && chown -R dev:dev /work /projects + +USER dev + +ENV AICHAT_FUNCTIONS_DIR=/opt/llm-functions + +WORKDIR /work +CMD ["bash"] + -- cgit v1.2.3