Move to debian/bullseye:slim as base image (#370)

This commit is contained in:
Matthias 2021-10-26 19:50:53 +02:00 committed by GitHub
parent 368d844233
commit b48292be4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -22,7 +22,7 @@ RUN rm ./target/release/deps/lychee* \
# Our production image starts here, which uses
# the files from the builder image above.
FROM debian:buster-slim
FROM debian:bullseye-slim
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \

View file

@ -173,6 +173,15 @@ acat -F zip {file.epub} "*.xhtml" "*.html" | lychee -
lychee --offline path/to/directory
```
### Docker Usage
Here's how to mount a local directory into the container and check some input
with lychee:
```sh
docker run -v `pwd`:/input lycheeverse/lychee /input/README.md
```
### GitHub token
Optionally, to avoid getting rate-limited while checking GitHub links, you can
@ -319,7 +328,7 @@ Try one of these links to get started:
Lychee is written in Rust. Install [rust-up](https://rustup.rs/) to get started.
Begin by making sure the following commands succeed without errors.
```bash
```sh
cargo test # runs tests
cargo clippy # lints code
cargo install cargo-publish-all