]> git.armaanb.net Git - gen-shell.git/blob - Dockerfile
move to sr.ht, minor updates
[gen-shell.git] / Dockerfile
1 FROM debian:buster-slim AS builder
2 RUN apt-get update && apt-get install -y cmake gcc g++ git libreadline-dev make
3 WORKDIR /app
4 ENTRYPOINT git clone --recursive --depth 1 https://codeberg.org/armaan/gen-shell.git /app
5 CMD cmake --configure . && cmake --build .
6
7 FROM debian:buster-slim AS run
8 RUN apt-get update && apt-get install -y cpp libreadline7 libncurses6
9 WORKDIR /app
10 COPY --from=builder /app/src/gen-shell .
11 ENTRYPOINT ./gen-shell -c $command -b $before_command -a $after_command -p $custom_prompt