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.
		
			
				
	
	
		
			27 lines
		
	
	
		
			646 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			646 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM debian:bookworm-slim
 | |
| 
 | |
| RUN apt-get update && \
 | |
|     apt-get -y full-upgrade && \
 | |
|     apt-get -y install devscripts && \
 | |
|     mkdir -p /bscreensaver-build
 | |
| 
 | |
| WORKDIR /bscreensaver
 | |
| 
 | |
| # Do this first to get our build deps cached.
 | |
| COPY debian ./debian
 | |
| RUN apt-get build-dep -y .
 | |
| 
 | |
| # Copy only what we need, to avoid bloating the image with e.g. the target/ dir
 | |
| COPY async-xcb ./async-xcb
 | |
| COPY command ./command
 | |
| COPY dbus-service ./dbus-service
 | |
| COPY dialog-gtk3 ./dialog-gtk3
 | |
| COPY locker ./locker
 | |
| COPY settings ./settings/
 | |
| COPY systemd ./systemd
 | |
| COPY util ./util
 | |
| COPY xcb-xembed ./xcb-xembed
 | |
| COPY bscreensaver.toml.example Cargo.* Makefile ./
 | |
| 
 | |
| CMD bash
 |