Skip to content

Commit eff77d6

Browse files
authored
fix(docker): match Debian version in base images (#1395)
fixed cargo complaints in docker when examples/ bench/ are missing but including them
1 parent d5ddf66 commit eff77d6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.dockerignore

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ assets
44
fixtures
55
.github
66
.vscode
7-
examples
8-
benches
97
docs
108
.editorconfig
119
lychee.example.toml

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:latest as builder
1+
FROM rust:bookworm as builder
22

33
RUN USER=root cargo new --bin lychee
44
WORKDIR /lychee
@@ -18,11 +18,12 @@ RUN cargo build --release \
1818
# dependencies were already built above.
1919
COPY . ./
2020
RUN rm ./target/release/deps/lychee* \
21-
&& cargo build --release
21+
&& cargo build --release \
22+
&& strip target/release/lychee
2223

2324
# Our production image starts here, which uses
2425
# the files from the builder image above.
25-
FROM debian:bullseye-slim
26+
FROM debian:bookworm-slim
2627

2728
RUN apt-get update \
2829
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \

0 commit comments

Comments
 (0)