GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — qlty/Dockerfile at main · qltysh/qlty

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
29 lines (25 loc) · 932 Bytes
/

Dockerfile

Copy path

File metadata and controls

29 lines (25 loc) · 932 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
FROM lukemathwalker/cargo-chef:0.1.72-rust-latest AS chef
WORKDIR /app
FROM chef AS planner
COPY . .
# More on how cargo-chef works:
# https://github.com/LukeMathWalker/cargo-chef?tab=readme-ov-file#benefits-vs-limitations
RUN cargo chef prepare
FROM chef AS builder
COPY --from=planner /app/recipe.json .
COPY rust-toolchain.toml .
# The line compiles dependencies. Since it's before the COPY line
# it will be cached and not re-run unless the dependencies change.
RUN cargo chef cook --release
COPY . .
# The line compiles the application, and will re-run every code change
RUN cargo build --release --bin qlty
RUN mv ./target/release/qlty ./qlty
FROM debian:bookworm-slim AS runtime
RUN apt-get update -yqq && apt-get install -yqq ca-certificates
WORKDIR /app
COPY --from=builder /app/qlty /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/qlty"]
# Example usage:
#
# docker run --rm -it -v "$(pwd):/app" qltysh/qlty metrics --all
You are visitor 01402520 — 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.