mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-12-22 09:07:34 +00:00
b04ee3a60a
Should add support for TLS 1.3 Also, this fixes the Alpine builds
18 lines
388 B
Docker
18 lines
388 B
Docker
FROM rust:1.46
|
|
|
|
WORKDIR /usr/src/
|
|
RUN USER=root cargo new --bin bitwarden_rs_ldap
|
|
WORKDIR /usr/src/bitwarden_rs_ldap
|
|
|
|
# Compile dependencies
|
|
COPY Cargo.toml Cargo.lock ./
|
|
RUN cargo build --locked --release
|
|
|
|
# Remove bins to make sure we rebuild
|
|
RUN rm ./target/release/deps/bitwarden_rs_ldap*
|
|
# Copy source and install
|
|
COPY src ./src
|
|
RUN cargo install --path .
|
|
|
|
CMD ["bitwarden_rs_ldap"]
|