mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-22 03:06:27 +00:00
91d70e6bb8
This adds pre-commit hooks installable using the provided Makefile as well as a new check to validate the version in the Cargo file matches the git tag. This will be useful as a check before pushing releases.
18 lines
388 B
Docker
18 lines
388 B
Docker
FROM rust:1.33
|
|
|
|
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"]
|