2020-04-29 21:17:15 +00:00
|
|
|
FROM rigetti/lisp AS whatscl-compiled
|
|
|
|
|
|
|
|
RUN apt update -y && apt install -y git
|
2020-07-02 17:27:43 +00:00
|
|
|
RUN sbcl --eval '(progn (quicklisp:update-dist "quicklisp" :prompt nil) (sb-ext:exit))'
|
2020-04-29 21:17:15 +00:00
|
|
|
RUN git clone https://github.com/eeeeeta/websocket-driver /src/websocket-driver
|
|
|
|
RUN git clone https://git.theta.eu.org/whatscl.git /src/whatscl
|
|
|
|
ADD ./ /src/whatsxmpp
|
|
|
|
WORKDIR /src/whatsxmpp
|
|
|
|
RUN make
|
|
|
|
|
|
|
|
FROM debian:stable-slim AS whatsxmpp
|
|
|
|
WORKDIR /wx
|
2020-06-19 08:23:57 +00:00
|
|
|
RUN apt-get update && apt-get install -y libz-dev libsqlite3-dev libssl-dev ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists/*
|
2020-04-29 21:17:15 +00:00
|
|
|
RUN mkdir /wx-data
|
|
|
|
COPY --from=whatscl-compiled /src/whatsxmpp/whatsxmpp /wx/whatsxmpp
|
2020-06-19 08:23:57 +00:00
|
|
|
ENTRYPOINT ["/wx/whatsxmpp"]
|