Re: docker for pil21
Nice - I did not know about the --no-cache option :) On Fri, Jan 26, 2024 at 8:09 AM Dmitry Non wrote: > Heya! > Interestingly, I wrote a dockerfile for myself too at the end of Dec.My > versions should be lighter due to the lack of build dependencies in the > final image: > > FROM alpine:3.19 AS build > > RUN apk add --no-cache readline-dev libffi-dev libressl-dev binutils make > clang llvm llvm-dev pkgconf > RUN sh -c ' \ > wget https://software-lab.de/picoLisp-23.12.tgz; \ > tar xfz picoLisp-23.12.tgz; \ > cd pil21/src; \ > make \ > ' > > FROM alpine:3.19 > RUN apk add --no-cache readline-dev libffi-dev libressl-dev > COPY --from=build /pil21 /usr/lib/picolisp > > # RUN ln -s /pil21 /usr/lib/picolisp > RUN ln -s /usr/lib/picolisp/bin/picolisp /usr/bin > RUN ln -s /usr/lib/picolisp/bin/pil /usr/bin > > ENTRYPOINT ["pil"] > > It's availalbe at https://hub.docker.com/r/dmitrynon/picolisp > but I didn't intend it for public consumption so you're better off using > your own dockerfile with some additions from mine > > On 24 Jan 2024, at 18:47, 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 > > >
Re: docker for pil21
Heya! Interestingly, I wrote a dockerfile for myself too at the end of Dec.My versions should be lighter due to the lack of build dependencies in the final image: FROM alpine:3.19 AS build RUN apk add --no-cache readline-dev libffi-dev libressl-dev binutils make clang llvm llvm-dev pkgconf RUN sh -c ' \ wget https://software-lab.de/picoLisp-23.12.tgz; \ tar xfz picoLisp-23.12.tgz; \ cd pil21/src; \ make \ ' FROM alpine:3.19 RUN apk add --no-cache readline-dev libffi-dev libressl-dev COPY --from=build /pil21 /usr/lib/picolisp # RUN ln -s /pil21 /usr/lib/picolisp RUN ln -s /usr/lib/picolisp/bin/picolisp /usr/bin RUN ln -s /usr/lib/picolisp/bin/pil /usr/bin ENTRYPOINT ["pil"] It's availalbe at https://hub.docker.com/r/dmitrynon/picolisp but I didn't intend it for public consumption so you're better off using your own dockerfile with some additions from mine > On 24 Jan 2024, at 18:47, 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
Re: docker for pil21
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 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 >