33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
ARG SCHEME=chibi
|
|
FROM docker.io/debian:trixie AS build
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential git ca-certificates wget guile-3.0 libcurl4-gnutls-dev chezscheme
|
|
WORKDIR /build
|
|
RUN wget https://gitlab.com/-/project/6808260/uploads/9d23bb6ec47dd2d7ee41802115cd7d80/akku-1.1.0.src.tar.xz && tar -xf akku-1.1.0.src.tar.xz
|
|
WORKDIR /build/akku-1.1.0.src
|
|
RUN ./install.sh
|
|
WORKDIR /build
|
|
RUN wget https://ftp.gnu.org/gnu/make/make-4.4.tar.gz && tar -xf make-4.4.tar.gz
|
|
WORKDIR /build/make-4.4
|
|
ENV PATH=/root/.local:${PATH}
|
|
RUN ./configure --prefix=/root/.local
|
|
RUN make
|
|
run make install
|
|
WORKDIR /build
|
|
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
|
|
WORKDIR /build/chibi-scheme
|
|
RUN make PREFIX=/root/.local
|
|
RUN make PREFIX=/root/.local install
|
|
|
|
ARG SCHEME=chibi
|
|
FROM docker.io/schemers/${SCHEME}:head
|
|
RUN apt-get update && apt-get install -y guile-3.0 libcurl3t64-gnutls libcurl4-gnutls-dev chezscheme
|
|
COPY --from=build /root/.local /root/.local
|
|
ENV PATH=/root/.local/bin:${PATH}
|
|
ENV LD_LIBRARY_PATH=/root/.local/lib
|
|
WORKDIR /workdir
|
|
COPY Makefile Makefile
|
|
COPY test.scm test.scm
|
|
COPY scheme-venv scheme-venv
|
|
|