mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-22 03:06:27 +00:00
Add alpine base option
This commit is contained in:
parent
233e040668
commit
829ed5585c
24
Dockerfile.alpine
Normal file
24
Dockerfile.alpine
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
FROM ekidd/rust-musl-builder AS builder
|
||||||
|
|
||||||
|
RUN USER=rust cargo init
|
||||||
|
|
||||||
|
COPY ./Cargo.toml ./Cargo.toml
|
||||||
|
COPY ./Cargo.lock ./Cargo.lock
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
# Remove temp src
|
||||||
|
RUN rm src/*.rs
|
||||||
|
COPY ./src ./src
|
||||||
|
# Fix permissions on source
|
||||||
|
RUN sudo chown -R rust:rust /home/rust/src/src
|
||||||
|
|
||||||
|
RUN touch ./src/main.rs
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
|
COPY --from=builder \
|
||||||
|
/home/rust/src/target/x86_64-unknown-linux-musl/release/bitwarden_rs_ldap \
|
||||||
|
/usr/local/bin/
|
||||||
|
|
||||||
|
CMD /usr/local/bin/bitwarden_rs_ldap
|
@ -1,9 +1,12 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
ldap_sync:
|
ldap_sync:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
# dockerfile: Dockerfile.alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./example.config.toml:/usr/src/bitwarden_rs_ldap/config.toml:ro
|
- ./example.config.toml:/usr/src/bitwarden_rs_ldap/config.toml:ro
|
||||||
|
# - ./example.config.toml:/config.toml:ro
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
bitwarden:
|
bitwarden:
|
||||||
|
Loading…
Reference in New Issue
Block a user