Upgrade rust, ubuntu, and dependencies

This commit is contained in:
ViViDboarder 2024-07-12 15:47:00 -07:00
parent 10f5f5edc6
commit 7baa18110e
2 changed files with 436 additions and 309 deletions

732
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,4 @@
ARG BUILD_TAG=1.57.0
ARG RUN_TAG=$BUILD_TAG
FROM rust:$BUILD_TAG as builder
FROM rust:1.79 as builder
WORKDIR /usr/src/
RUN USER=root cargo new --bin vaultwarden_ldap
@ -18,9 +15,11 @@ RUN rm ./target/release/deps/vaultwarden_ldap*
COPY src ./src
RUN cargo build --release
FROM ubuntu:focal
WORKDIR /app
RUN apt-get update -y && apt-get install -y libssl-dev=1.1.1f-1ubuntu2.22 --no-install-recommends && rm -rf /var/lib/apt/lists/*
# Use most recent ubuntu LTS release
FROM ubuntu:24.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends 'libssl-dev=3.*' \
&& rm -rf /var/cache/apt/lists
COPY --from=builder /usr/src/vaultwarden_ldap/target/release/vaultwarden_ldap /usr/local/bin/
CMD ["/usr/local/bin/vaultwarden_ldap"]