fix(docker): match Debian version in base images (#1395)

fixed cargo complaints in docker when examples/ bench/ are missing but including them
This commit is contained in:
Matthew Timms 2024-04-03 23:44:17 +11:00 committed by GitHub
parent d5ddf66b00
commit eff77d6342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -4,8 +4,6 @@ assets
fixtures
.github
.vscode
examples
benches
docs
.editorconfig
lychee.example.toml

View file

@ -1,4 +1,4 @@
FROM rust:latest as builder
FROM rust:bookworm as builder
RUN USER=root cargo new --bin lychee
WORKDIR /lychee
@ -18,11 +18,12 @@ RUN cargo build --release \
# dependencies were already built above.
COPY . ./
RUN rm ./target/release/deps/lychee* \
&& cargo build --release
&& cargo build --release \
&& strip target/release/lychee
# Our production image starts here, which uses
# the files from the builder image above.
FROM debian:bullseye-slim
FROM debian:bookworm-slim
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \