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 FROM rust:1.79 as builder
ARG RUN_TAG=$BUILD_TAG
FROM rust:$BUILD_TAG as builder
WORKDIR /usr/src/ WORKDIR /usr/src/
RUN USER=root cargo new --bin vaultwarden_ldap RUN USER=root cargo new --bin vaultwarden_ldap
@ -18,9 +15,11 @@ RUN rm ./target/release/deps/vaultwarden_ldap*
COPY src ./src COPY src ./src
RUN cargo build --release RUN cargo build --release
FROM ubuntu:focal # Use most recent ubuntu LTS release
WORKDIR /app FROM ubuntu:24.04
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/* 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/ COPY --from=builder /usr/src/vaultwarden_ldap/target/release/vaultwarden_ldap /usr/local/bin/
CMD ["/usr/local/bin/vaultwarden_ldap"] CMD ["/usr/local/bin/vaultwarden_ldap"]