fix: fixed libssl not found error in docker image
Build and Deploy / build-docker (push) Successful in 5m20s Details

This commit is contained in:
antifallobst 2023-11-24 17:27:01 +01:00
parent a3f58ccc39
commit 0d00d9b8ba
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 7 additions and 2 deletions

View File

@ -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