File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ RUN cargo chef cook --release --recipe-path recipe.json
1616COPY . .
1717RUN cargo build --release --bin github-wiki-see
1818
19- # We do not need the Rust toolchain to run the binary!
20- FROM gcr.io/distroless/cc-debian12 AS runtime
19+ # Keep the runtime libc in the same Debian generation as the Rust builder.
20+ FROM gcr.io/distroless/cc-debian13 AS runtime
2121WORKDIR /app
2222COPY --from=builder /app/target/release/github-wiki-see /usr/local/bin/github-wiki-see
2323
2424ENV ROCKET_ADDRESS=0.0.0.0
25+ ENV ROCKET_PORT=8000
2526
2627CMD ["/usr/local/bin/github-wiki-see" ]
Original file line number Diff line number Diff line change @@ -479,16 +479,8 @@ fn versionz() -> String {
479479}
480480
481481#[ get( "/healthz" ) ]
482- fn healthz ( ) -> content:: RawHtml < String > {
483- let mirrored_content = content_to_html (
484- Content :: Markdown ( String :: from (
485- "# Health Check\n \n - parser\n - renderer\n - rewrites" ,
486- ) ) ,
487- "health" ,
488- "check" ,
489- "Home" ,
490- ) ;
491- content:: RawHtml ( mirrored_content)
482+ fn healthz ( ) -> & ' static str {
483+ "ok"
492484}
493485
494486#[ launch]
You can’t perform that action at this time.
0 commit comments