Nice,
Here's some additions to make the image a little lighter (not including the
*-dev packages) and also adding the appropriate soft links as indicated in
the INSTALL file

FROM alpine:latest as builder

RUN apk update && apk upgrade
RUN apk add bash git make llvm clang readline libffi openssl
RUN apk add llvm-dev readline-dev libffi-dev openssl-dev
WORKDIR /root
RUN git clone https://github.com/picolisp/pil21
WORKDIR /root/pil21/src
RUN touch *.ll
RUN make

FROM alpine:latest
RUN apk add bash git make llvm clang readline libffi openssl vim
COPY --from=builder /root/pil21 /root/pil21
RUN ln -s /root/pil21 /usr/lib/picolisp
RUN ln -s /usr/lib/picolisp/bin/picolisp /usr/bin
RUN ln -s /usr/lib/picolisp/bin/pil /usr/bin
RUN mkdir -p /usr/share/man/man1
RUN mkdir -p /usr/share/bash-completion/completions
RUN ln -s /root/pil21/man/man1/picolisp.1 /usr/share/man/man1
RUN ln -s /root/pil21/man/man1/pil.1 /usr/share/man/man1
RUN ln -s /root/pil21 /usr/share/picolisp
RUN ln -s /root/pil21/lib/bash_completion
/usr/share/bash-completion/completions/pil

On Wed, Jan 24, 2024 at 10:59 AM <picolisp@software-lab.de> wrote:

> hi all,
>
> I have created a docker file for pil21 you can play with.
> Comments are welcome.
>
> https://git.envs.net/mpech/pil21-docker
>
> (mike)
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>

Reply via email to