🐳 ♻️ 📌 set alpine@3.18.4 as runtime image

This commit is contained in:
Marcello DeSales 2023-11-23 07:58:57 -08:00
parent 268b187b80
commit d10159ae2e
No known key found for this signature in database
GPG Key ID: DC4E536EE3A84B25
1 changed files with 5 additions and 5 deletions

View File

@ -47,14 +47,14 @@ RUN cargo build --locked --bin mdbook --release --target x86_64-unknown-linux-mu
################ ################
##### Runtime ##### Runtime
FROM --platform=$BUILDPLATFORM alpine:3.16.0 AS runtime FROM alpine:3.18.4 AS runtime
# Copy application binary from builder image # 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 COPY --from=builder /usr/src/github.com/rust-lang/mdBook/target/x86_64-unknown-linux-musl/release/mdbook /usr/local/bin/mdbook
ARG TARGETPLATFORM # Just to document which port a container from this image exposes
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /etc/build.log
EXPOSE 3000 EXPOSE 3000
# The command to serve the books
ENTRYPOINT ["mdbook", "serve", "--hostname", "0.0.0.0"] ENTRYPOINT ["mdbook", "serve", "--hostname", "0.0.0.0"]