Skip to content

Commit

Permalink
fix(docker): match Debian version in base images (#1395)
Browse files Browse the repository at this point in the history
fixed cargo complaints in docker when examples/ bench/ are missing but including them
  • Loading branch information
MattTimms committed Apr 3, 2024
1 parent d5ddf66 commit eff77d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ assets
fixtures
.github
.vscode
examples
benches
docs
.editorconfig
lychee.example.toml
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:latest as builder
FROM rust:bookworm as builder

RUN USER=root cargo new --bin lychee
WORKDIR /lychee
Expand All @@ -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 \
Expand Down

0 comments on commit eff77d6

Please sign in to comment.