Merge pull request #29 from Trivernis/develop

Add qalculate to docker build
feature/events
Trivernis 3 years ago committed by GitHub
commit 28c6da036e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]
Loading…
Cancel
Save