From d10159ae2e889a5422c69dcb5e8ce463a4619599 Mon Sep 17 00:00:00 2001 From: Marcello DeSales Date: Thu, 23 Nov 2023 07:58:57 -0800 Subject: [PATCH] :whale: :recycle: :pushpin: set alpine@3.18.4 as runtime image --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b1653a1..36f0d42c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,14 +47,14 @@ RUN cargo build --locked --bin mdbook --release --target x86_64-unknown-linux-mu ################ ##### Runtime -FROM --platform=$BUILDPLATFORM alpine:3.16.0 AS runtime +FROM alpine:3.18.4 AS runtime # Copy application binary from builder image COPY --from=builder /usr/src/github.com/rust-lang/mdBook/target/x86_64-unknown-linux-musl/release/mdbook /usr/local/bin/mdbook -ARG TARGETPLATFORM -ARG BUILDPLATFORM -RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /etc/build.log - +# Just to document which port a container from this image exposes EXPOSE 3000 + +# The command to serve the books ENTRYPOINT ["mdbook", "serve", "--hostname", "0.0.0.0"] +