mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-21 18:56:27 +00:00
Fix alpine build
This commit is contained in:
parent
5682eab8dc
commit
21a50a1ee0
@ -4,13 +4,14 @@ WORKDIR /home/rust/src
|
||||
|
||||
# Cache build deps
|
||||
RUN USER=rust cargo init
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY --chown=rust:rust Cargo.toml Cargo.lock ./
|
||||
RUN cargo build --locked --release && \
|
||||
rm src/*.rs
|
||||
|
||||
COPY --chown=rust:rust ./src ./src
|
||||
RUN touch ./src/main.rs && \
|
||||
cargo build --release
|
||||
RUN USER=rust touch ./src/main.rs
|
||||
# hadolint ignore=DL3059
|
||||
RUN cargo build --release
|
||||
|
||||
FROM alpine:3
|
||||
RUN apk --no-cache add ca-certificates=20191127-r5
|
||||
|
Loading…
Reference in New Issue
Block a user