bitwarden_rs_ldap/Dockerfile

18 lines
384 B
Docker
Raw Normal View History

FROM rust:1.46
WORKDIR /usr/src/
2021-05-07 19:55:29 +00:00
RUN USER=root cargo new --bin vaultwarden_ldap
WORKDIR /usr/src/vaultwarden_ldap
# Compile dependencies
COPY Cargo.toml Cargo.lock ./
RUN cargo build --locked --release
# Remove bins to make sure we rebuild
2021-05-07 19:55:29 +00:00
RUN rm ./target/release/deps/vaultwarden_ldap*
# Copy source and install
COPY src ./src
RUN cargo install --path .
2021-05-07 19:55:29 +00:00
CMD ["vaultwarden_ldap"]