mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
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:
parent
d5ddf66b00
commit
eff77d6342
2 changed files with 4 additions and 5 deletions
|
|
@ -4,8 +4,6 @@ assets
|
|||
fixtures
|
||||
.github
|
||||
.vscode
|
||||
examples
|
||||
benches
|
||||
docs
|
||||
.editorconfig
|
||||
lychee.example.toml
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue