# Being used by the packaging/build_in_podman_container.sh script
ARG APPNAME topnfiles
FROM rust:1.89-bullseye
COPY . .
RUN apt-get update
RUN <<EOF
echo HERE
ls -la
set -e
cargo build --release
strip target/release/topnfiles
cargo install cargo-generate-rpm
cargo generate-rpm
cargo install cargo-deb
cargo deb
rm -f target/debian/*stripped
EOF
