From 3d4638847892e7fb4f2bffa7d54decdc2bd96460 Mon Sep 17 00:00:00 2001 From: Matthew Deville Date: Fri, 20 Feb 2026 01:16:02 +0100 Subject: [PATCH] update --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0299a56..731d7d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ -FROM rust:latest AS builder +FROM rust:1 AS builder WORKDIR /usr/src/website COPY . . RUN cargo install --path . FROM debian:trixie-slim -RUN apt-get update && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/local/cargo/bin/website /usr/local/bin/website + +EXPOSE 3000 +HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ + CMD curl -f http://localhost:3000/ || exit 1 + CMD ["website"]