Skip to content

Commit

Permalink
v0.1.10: Fix running in container
Browse files Browse the repository at this point in the history
Signed-off-by: Hollow Man <hollowman@opensuse.org>
  • Loading branch information
HollowMan6 committed Aug 6, 2024
1 parent d67eeb6 commit d3e10e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let launch_opts = LaunchOptionsBuilder::default()
.headless(true)
.sandbox(false)
.devtools(false)
.idle_browser_timeout(Duration::from_secs(cfg.timeout))
.path(browser_binary)
Expand Down

0 comments on commit d3e10e6

Please sign in to comment.