From 30863c28e17a794d70fa36a71b55450a782e3c78 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 26 Apr 2021 11:53:06 +0200 Subject: [PATCH] Add qalculate to docker build Signed-off-by: trivernis --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 293a4cd..d960679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,18 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ RUN mkdir /tmp/tobi RUN --mount=type=cache,target=target cp target/release/tobi-rs /tmp/tobi/ +FROM bitnami/minideb:latest AS qalculate-builder +RUN mkdir /tmp/qalculate +WORKDIR /tmp/qalculate +RUN install_packages ca-certificates wget xz-utils +RUN wget https://github.com/Qalculate/qalculate-gtk/releases/download/v3.18.0/qalculate-3.18.0-x86_64.tar.xz -O qalculate.tar.xz +RUN tar xf qalculate.tar.xz +RUN cp qalculate-3.18.0/* /tmp/qalculate + FROM bitnami/minideb:latest RUN install_packages openssl libopus0 ffmpeg python3 python3-pip libpq5 +COPY --from=qalculate-builder /tmp/qalculate/* /usr/bin/ +COPY --from=builder /tmp/tobi/tobi-rs . RUN pip3 install youtube-dl RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ -COPY --from=builder /tmp/tobi/tobi-rs . ENTRYPOINT ["/tobi-rs"] \ No newline at end of file