Fix missing qalc executable in container

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/51/head
trivernis 2 years ago
parent 2ffdd1c9f9
commit 7879062a82
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -2604,7 +2604,7 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tobi-rs"
version = "0.9.11"
version = "0.9.12"
dependencies = [
"animethemes-rs",
"aspotify",

@ -3,7 +3,7 @@ members=["bot-coreutils", "bot-database", "."]
[package]
name = "tobi-rs"
version = "0.9.11"
version = "0.9.12"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"

@ -1,5 +1,4 @@
ARG QALCULATE_VERSION=4.1.1
ARG BASE_IMAGE=docker.io/alpine:latest
ARG BASE_IMAGE=docker.io/alpine:edge
FROM ${BASE_IMAGE} AS build_base
RUN apk update
@ -27,15 +26,6 @@ RUN cargo build --release --verbose
RUN mkdir /tmp/tobi
RUN cp target/release/tobi-rs /tmp/tobi/
FROM build_base AS qalculate-builder
ARG QALCULATE_VERSION
RUN mkdir /tmp/qalculate
WORKDIR /tmp/qalculate
RUN apk add --no-cache wget xz ca-certificates
RUN wget https://github.com/Qalculate/qalculate-gtk/releases/download/v${QALCULATE_VERSION}/qalculate-${QALCULATE_VERSION}-x86_64.tar.xz -O qalculate.tar.xz
RUN tar xf qalculate.tar.xz
RUN cp qalculate-${QALCULATE_VERSION}/* /tmp/qalculate
FROM ${BASE_IMAGE} AS runtime-base
RUN apk update
RUN apk add --no-cache --force-overwrite \
@ -44,11 +34,11 @@ RUN apk add --no-cache --force-overwrite \
libpq \
python3 \
py3-pip \
qalc \
bash
RUN pip3 install youtube-dl
RUN rm -rf /var/lib/{cache,log}/ /var/cache
FROM runtime-base
COPY --from=qalculate-builder /tmp/qalculate/* /usr/bin/
COPY --from=builder /tmp/tobi/tobi-rs .
ENTRYPOINT ["/tobi-rs"]
Loading…
Cancel
Save