fix: fixed libssl not found error in docker image
Build and Deploy / build-docker (push) Successful in 5m20s
Details
Build and Deploy / build-docker (push) Successful in 5m20s
Details
This commit is contained in:
parent
a3f58ccc39
commit
0d00d9b8ba
|
@ -1,7 +1,12 @@
|
|||
FROM debian:bullseye-slim as final
|
||||
|
||||
RUN apt-get update; apt-get install -y libssl1.1; rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM rust:latest as build
|
||||
|
||||
RUN apt-get update; \
|
||||
apt-get install -y libclang-dev automake autoconf
|
||||
apt-get install -y libclang-dev automake autoconf \
|
||||
openssl
|
||||
|
||||
# 1. Create a new empty shell project
|
||||
RUN USER=root cargo new --bin nerdcult_api
|
||||
|
@ -24,7 +29,7 @@ RUN rm ./target/release/deps/nerdcult_api*
|
|||
|
||||
RUN SQLX_OFFLINE=true cargo build --release
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
FROM final
|
||||
|
||||
COPY --from=build /nerdcult_api/target/release/nerdcult_api /bin/nerdcult_api
|
||||
|
||||
|
|
Loading…
Reference in New Issue