diff --git a/Dockerfile b/Dockerfile index 0c1195ac8..9aaac9c01 100755 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,12 @@ COPY --from=cacher /scryer-prolog/target target COPY --from=cacher $CARGO_HOME $CARGO_HOME RUN cargo build --release --bin scryer-prolog -FROM debian:stable-slim +# Newer versions of Debian (i.e. bookworm) contain libssl3 instead of libssl1.1 +# which we depend on. +FROM debian:bullseye-slim COPY --from=builder /scryer-prolog/target/release/scryer-prolog /usr/local/bin ENV RUST_BACKTRACE=1 +# Sanity check the binary: if it can't be executed (e.g. if there are missing libraries) +# then fail the build +RUN scryer-prolog --version ENTRYPOINT ["/usr/local/bin/scryer-prolog"]