wolfree (sha256:a9b2fb3afb31884b0fcdacfa3601ad8594014da468ba1bb4d8b197c209cceb55)

Published 2024-03-27 00:11:44 +08:00 by opnxng in opnxng/docker-images

Installation

docker pull git.opnxng.com/opnxng/wolfree@sha256:a9b2fb3afb31884b0fcdacfa3601ad8594014da468ba1bb4d8b197c209cceb55
sha256:a9b2fb3afb31884b0fcdacfa3601ad8594014da468ba1bb4d8b197c209cceb55

Image Layers

ADD file:d0764a717d1e9d0aff3fa84779b11bfa0afe4430dcb6b46d965b209167639ba0 in /
CMD ["/bin/sh"]
WORKDIR /app/
RUN /bin/sh -c apk -- add wget gcc rustup npm ; # buildkit
COPY ./docusaurus/package.json ./docusaurus/package.json # buildkit
RUN /bin/sh -c npm --prefix ./docusaurus/ -- install ; # buildkit
RUN /bin/sh -c npm --prefix ./docusaurus/ -- audit fix ; # buildkit
COPY ./typescript/package.json ./typescript/package.json # buildkit
RUN /bin/sh -c npm --prefix ./typescript/ -- install ; # buildkit
RUN /bin/sh -c npm --prefix ./typescript/ -- audit fix ; # buildkit
RUN /bin/sh -c rustup-init -y -- ; # buildkit
COPY ./rust/wolfree_download_dependencies/ ./rust/wolfree_download_dependencies/ # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo -- clippy --manifest-path ./rust/wolfree_download_dependencies/Cargo.toml -- --warn clippy::all --warn clippy::cargo --warn clippy::nursery --warn clippy::pedantic --warn clippy::restriction ; # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo run --manifest-path ./rust/wolfree_download_dependencies/Cargo.toml -- ; # buildkit
RUN /bin/sh -c wget --directory-prefix=./docusaurus/static/ --no-host-directories --page-requisites --convert-links --no-verbose --input-file=- --base= -- 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js' 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.map' 'https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.5/purify.min.js' 'https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.5/purify.min.js.map' 'https://www.wolframalpha.com/input/index.html' ; : ; # buildkit
RUN /bin/sh -c sed -e 's|.*js...static.chunks...........||' -e 's|"........js.....miniCssF.*|.js\n|' -e 's|:"|.|g' -e 's|",|.js\n|g' -- ./docusaurus/static/_next/static/chunks/webpack-*.js | wget --directory-prefix=./docusaurus/static/ --no-host-directories --page-requisites --convert-links --no-verbose --input-file=- --base=https://www.wolframalpha.com/_next/static/chunks/ -- ; : ; # buildkit
RUN /bin/sh -c sed -e 's|.*return.static.css.....||' -e 's|.........css.......function.*|.css\n|' -e 's|[0-9]*:"||g' -e 's|",|.css\n|g' -- ./docusaurus/static/_next/static/chunks/webpack-*.js | wget --directory-prefix=./docusaurus/static/ --no-host-directories --page-requisites --convert-links --no-verbose --input-file=- --base=https://www.wolframalpha.com/_next/static/css/ -- ; : ; # buildkit
RUN /bin/sh -c sed -e 's|.*sortedPages.*}..||' -e 's|...self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB.*||' -e 's|","|\n|g' -- ./docusaurus/static/_next/static/*/_buildManifest.js | wget --directory-prefix=./docusaurus/static/ --no-host-directories --page-requisites --convert-links --no-verbose --input-file=- --base=https://www.wolframalpha.com/_next/ -- ; : ; # buildkit
RUN /bin/sh -c truncate -s 0 -- ./docusaurus/static/_next/static/images/* ./docusaurus/static/_next/static/media/*.png ./docusaurus/static/_next/static/media/*.gif ; # buildkit
COPY ./rust/wolfree_sed_in_place/ ./rust/wolfree_sed_in_place/ # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo -- clippy --manifest-path ./rust/wolfree_sed_in_place/Cargo.toml -- --warn clippy::all --warn clippy::cargo --warn clippy::nursery --warn clippy::pedantic --warn clippy::restriction ; # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo run --manifest-path ./rust/wolfree_sed_in_place/Cargo.toml -- ; # buildkit
COPY ./typescript/ ./typescript/ # buildkit
RUN /bin/sh -c npm --prefix ./typescript/ -- exec tsc --project ./typescript/ ; # buildkit
COPY ./docusaurus/ ./docusaurus/ # buildkit
COPY ./rust/wolfree_patch_libredirect/ ./rust/wolfree_patch_libredirect/ # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo -- clippy --manifest-path ./rust/wolfree_patch_libredirect/Cargo.toml -- --warn clippy::all --warn clippy::cargo --warn clippy::nursery --warn clippy::pedantic --warn clippy::restriction ; # buildkit
RUN /bin/sh -c PATH="$HOME/.cargo/bin:$PATH" cargo run --manifest-path ./rust/wolfree_patch_libredirect/Cargo.toml -- ; # buildkit
COPY ./README.md ./README.md # buildkit
RUN /bin/sh -c cat -- ./README.md >> ./docusaurus/docs/source.mdx ; # buildkit
RUN /bin/sh -c npm --prefix ./docusaurus/ -- run build ; # buildkit
CMD ["/bin/sh" "-c" "npm --prefix ./docusaurus/ -- run serve --host localhost --port 80 ;"]
EXPOSE map[80/tcp:{}]
Details
Container
2024-03-27 00:11:44 +08:00
1
OCI / Docker
linux/arm64
588 MiB
Versions (1) View all
latest 2024-03-27