GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Pake/Dockerfile at main · diffuzor2a9/Pake Expand file tree/ Copy pathDockerfileMore file actions 86 lines (70 loc) · 3.46 KB / Copy pathDockerfileFile metadata and controls86 lines (70 loc) · 3.46 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 # syntax=docker/dockerfile:1.4 # Cargo build stage - Updated to latest Rust for edition2024 support FROM rust:latest AS cargo-builder # Update Rust to ensure we have the latest version with edition2024 support RUN rustup update stable && rustup default stable # Verify Rust version supports edition2024 RUN rustc --version && cargo --version # Install Rust dependencies RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ rm -f /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock /var/cache/apt/archives/lock && \ apt-get update && apt-get install -y --no-install-recommends \ libdbus-1-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev \ libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev \ libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \ gnome-video-effects && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Set PKG_CONFIG_PATH for GLib detection ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig # Verify Rust version RUN rustc --version && echo "Rust version verified" COPY . /pake WORKDIR /pake/src-tauri # Build cargo packages and store cache RUN --mount=type=cache,target=/usr/local/cargo/registry \ cargo fetch && \ cargo build --release && \ mkdir -p /cargo-cache && \ cp -R /usr/local/cargo/registry /cargo-cache/ && \ ([ -d "/usr/local/cargo/git" ] && cp -R /usr/local/cargo/git /cargo-cache/ || mkdir -p /usr/local/cargo/git) && \ cp -R /usr/local/cargo/git /cargo-cache/ # Verify the content of /cargo-cache && clean unnecessary files RUN ls -la /cargo-cache/registry && ls -la /cargo-cache/git && rm -rfd /cargo-cache/registry/src # Main build stage FROM rust:latest AS builder # Update Rust to ensure we have the latest version with edition2024 support RUN rustup update stable && rustup default stable # Install Rust dependencies RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ rm -f /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock /var/cache/apt/archives/lock && \ apt-get update && apt-get install -y --no-install-recommends \ libdbus-1-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev \ libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev \ libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \ gnome-video-effects && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Set PKG_CONFIG_PATH for GLib detection ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig # Verify Rust version in builder stage RUN rustc --version && echo "Builder stage Rust version verified" # Install Node.js 22.x and pnpm RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ rm -f /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock /var/cache/apt/archives/lock && \ curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ apt-get update && apt-get install -y nodejs && \ npm install -g pnpm && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Copy project files COPY . /pake WORKDIR /pake # Copy Rust build artifacts COPY --from=cargo-builder /pake/src-tauri /pake/src-tauri COPY --from=cargo-builder /cargo-cache/git /usr/local/cargo/git COPY --from=cargo-builder /cargo-cache/registry /usr/local/cargo/registry # Install dependencies and build pake-cli RUN --mount=type=cache,target=/root/.local/share/pnpm \ pnpm install --frozen-lockfile && \ pnpm run cli:build # Set up the entrypoint WORKDIR /output ENTRYPOINT ["node", "/pake/dist/cli.js"] |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |