diff --git a/Cargo.toml b/Cargo.toml index 4a6c53e..6ba8c33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "GPL-3.0" name = "mdbook-pdf" readme = "README.md" repository = "https://github.com/HollowMan6/mdbook-pdf" -version = "0.1.9" +version = "0.1.10" include = [ "**/*.rs", "Cargo.toml", diff --git a/Dockerfile b/Dockerfile index d075f38..b0c1072 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM rust as builder +FROM rust AS builder COPY . . RUN apt update && apt install -y build-essential # Install mdbook RUN cargo install --git https://github.com/HollowMan6/mdBook mdbook RUN cargo install --path . -FROM python as base +FROM python AS base RUN apt-get update \ && apt-get install -y \ chromium fonts-wqy-microhei fonts-wqy-zenhei \ diff --git a/src/main.rs b/src/main.rs index c93b724..ef7d6a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,6 +178,7 @@ fn main() -> Result<(), Box> { let launch_opts = LaunchOptionsBuilder::default() .headless(true) + .sandbox(false) .devtools(false) .idle_browser_timeout(Duration::from_secs(cfg.timeout)) .path(browser_binary)