Make debian package building work

I gave up on getting it to build on bullseye, as its cargo/rustc is too
old for the 2021 edition.  Building newer deb packages of rust is
apparently a difficult, manual process.  I tried installing rustup and
pulling the latest compiler, but that failed with strange errors that I
am tired of debugging.
This commit is contained in:
2022-05-14 00:15:03 -07:00
parent b63de1d416
commit aafe026092
6 changed files with 16 additions and 20 deletions

View File

@ -1,15 +1,11 @@
FROM debian:bullseye-slim
ARG RUST_VERSION=1.60
WORKDIR /bscreensaver
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get -y full-upgrade && \
apt-get -y install curl devscripts && \
mkdir -p /build
apt-get -y install devscripts && \
mkdir -p /bscreensaver-build
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
WORKDIR /bscreensaver
# Do this first to get our build deps cached.
COPY debian ./debian