2018-03-17 10:22:59 +01:00
|
|
|
FROM alpine:latest AS cl-k8s
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
git
|
|
|
|
RUN git clone https://github.com/brendandburns/cl-k8s.git /cl-k8s
|
|
|
|
|
2019-07-26 19:30:13 +02:00
|
|
|
FROM debian:bullseye-slim
|
2018-03-17 10:22:59 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
2019-05-26 01:11:12 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2018-03-17 10:22:59 +01:00
|
|
|
ca-certificates \
|
2019-05-26 01:11:12 +02:00
|
|
|
clisp \
|
|
|
|
wget \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-03-17 10:22:59 +01:00
|
|
|
|
|
|
|
COPY .clisprc.lisp /home/user/.clisprc.lisp
|
|
|
|
COPY --from=cl-k8s /cl-k8s /home/user/quicklisp/local-projects/cl-k8s
|
|
|
|
|
2018-03-20 07:33:45 +01:00
|
|
|
# Install quicklisp
|
|
|
|
RUN wget -O /home/user/quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp
|
|
|
|
|
2018-03-17 10:22:59 +01:00
|
|
|
ENV HOME /home/user
|
2019-05-26 01:11:12 +02:00
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
2018-03-17 10:22:59 +01:00
|
|
|
&& chown -R user:user $HOME
|
|
|
|
|
|
|
|
USER user
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
2018-03-20 07:33:45 +01:00
|
|
|
# Install quicklisp
|
|
|
|
RUN clisp -x '(load "quicklisp.lisp") (quicklisp-quickstart:install)'
|
|
|
|
|
2018-03-17 10:22:59 +01:00
|
|
|
ENTRYPOINT [ "clisp" ]
|