blob: 7829e1f55c0a66beca965f70353a9461b46b6634 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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 \
bash ca-certificates curl git jq \
ripgrep fd-find \
unzip zip xz-utils \
less nano vim-tiny tmux \
openssh-client \
python3 python3-pip python3-venv \
nodejs npm \
build-essential pkg-config \
lynx \
git \
pandoc texlive texlive-lang-german texlive-latex-extra \
&& 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"]
|