Skip to content

Commit 606be88

Browse files
committed
Fix Fly runtime image compatibility
1 parent 673cb19 commit 606be88

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ RUN cargo chef cook --release --recipe-path recipe.json
1616
COPY . .
1717
RUN 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
2121
WORKDIR /app
2222
COPY --from=builder /app/target/release/github-wiki-see /usr/local/bin/github-wiki-see
2323

2424
ENV ROCKET_ADDRESS=0.0.0.0
25+
ENV ROCKET_PORT=8000
2526

2627
CMD ["/usr/local/bin/github-wiki-see"]

src/main.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)