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
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
2018-11-29 22:49:49 +01:00
|
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
2018-03-17 10:22:59 +01:00
|
|
|
ca-certificates \
|
|
|
|
clisp
|
|
|
|
|
|
|
|
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
|
|
|
|
RUN adduser -u 1001 -D user \
|
|
|
|
&& 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" ]
|