mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-22 11:16: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
|
# Cache build deps
|
||||||
RUN USER=rust cargo init
|
RUN USER=rust cargo init
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY --chown=rust:rust Cargo.toml Cargo.lock ./
|
||||||
RUN cargo build --locked --release && \
|
RUN cargo build --locked --release && \
|
||||||
rm src/*.rs
|
rm src/*.rs
|
||||||
|
|
||||||
COPY --chown=rust:rust ./src ./src
|
COPY --chown=rust:rust ./src ./src
|
||||||
RUN touch ./src/main.rs && \
|
RUN USER=rust touch ./src/main.rs
|
||||||
cargo build --release
|
# hadolint ignore=DL3059
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
RUN apk --no-cache add ca-certificates=20191127-r5
|
RUN apk --no-cache add ca-certificates=20191127-r5
|
||||||
|
Loading…
Reference in New Issue
Block a user