]> git.armaanb.net Git - gen-shell.git/blob - Dockerfile
nice multi-stage dockerfile
[gen-shell.git] / Dockerfile
1 FROM centos:8 AS builder
2 RUN dnf -y install cmake gcc gcc-c++ git readline-devel make
3 RUN git clone https://codeberg.org/armaan/gen-shell.git /app
4 WORKDIR /app
5 RUN cmake --configure .
6 RUN cmake --build .
7
8 FROM centos:8
9 RUN dnf -y install readline cpp
10 WORKDIR /app
11 COPY --from=builder /app/src/gen-shell .
12 ENTRYPOINT ./gen-shell $CMD