tools-mdbook (latest)
Installation
docker pull git.tfld.dev/tfld/tools-mdbook:latest
sha256:8886bf7ff08ecccdc437b70ee0b9d64f03b1447041f40903efcb63429451feee
About this package
mdBook in a container
Image Layers
ADD file:d261a6f6921593f1e0b3f472ab1b1822e2c6deb0b369200f0b3370556bfad017 in / |
CMD ["bash"] |
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.74.1 |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev wget ; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db' ;; armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a' ;; arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800' ;; i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac; url="https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init"; wget "$url"; echo "${rustupSha256} *rustup-init" | sha256sum -c -; chmod +x rustup-init; ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; rm rustup-init; chmod -R a+w $RUSTUP_HOME $CARGO_HOME; rustup --version; cargo --version; rustc --version; apt-get remove -y --auto-remove wget ; rm -rf /var/lib/apt/lists/*; |
LABEL org.opencontainers.image.description=mdBook container (from source) |
ARG VERSION |
ARG VERSION_MERMAID |
RUN |2 VERSION=0.4.36 VERSION_MERMAID=0.13.0 /bin/sh -c cargo install mdbook --version $VERSION # buildkit |
RUN |2 VERSION=0.4.36 VERSION_MERMAID=0.13.0 /bin/sh -c cargo install mdbook-mermaid --version $VERSION_MERMAID # buildkit |
ENV SOURCE=/book |
EXPOSE map[3000/tcp:{}] |
CMD ["/bin/sh" "-c" "mdbook serve $SOURCE -n 0.0.0.0"] |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2023-12-14T05:07:51.359Z |
org.opencontainers.image.description | mdBook in a container |
org.opencontainers.image.licenses | |
org.opencontainers.image.revision | f560c3731b0aafb856e9934e2efa8fcc624be6b3 |
org.opencontainers.image.source | https://git.tfld.dev/tfld/tools |
org.opencontainers.image.title | mdBook |
org.opencontainers.image.url | https://git.tfld.dev/tfld/tools |
org.opencontainers.image.version | 0.4.36 |
Details
2023-12-14 06:13:39 +01:00
Versions (4)
View all
Container
2
OCI / Docker
linux/amd64
297 MiB