Skip to content

Commit

Permalink
Remove unused dependency curl from dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Sep 19, 2023
1 parent bf03a10 commit 7d80bfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
FROM ghcr.io/msrd0/abuild-aarch64 AS builder

USER root
RUN apk add --no-cache cargo curl-dev
RUN apk add --no-cache cargo

COPY Cargo.toml /src/
COPY Cargo.lock /src/
Expand All @@ -18,5 +18,5 @@ RUN cargo build --release --locked
# files in the final image
FROM alpine

RUN apk add --no-cache cargo libcurl
RUN apk add --no-cache cargo
COPY --from=builder /src/target/release/cargo-doc2readme /usr/bin/
7 changes: 2 additions & 5 deletions Dockerfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ ENV RUSTUP_HOME="/usr/local/rust"
ENV CARGO_HOME="$RUSTUP_HOME/cargo"
ENV PATH="$PATH:$CARGO_HOME/bin"

# unstable but reduces the amount downloaded significantly
ENV CARGO_UNSTABLE_SPARSE_REGISTRY=true

RUN apk add --no-cache libcurl gcc musl-dev \
&& apk add --no-cache --virtual .build-deps curl-dev jq rustup \
RUN apk add --no-cache gcc musl-dev \
&& apk add --no-cache --virtual .build-deps jq rustup \
&& rustup-init -y --default-toolchain nightly --profile minimal --no-modify-path \
&& cargo install \
--git https://github.com/msrd0/cargo-doc2readme \
Expand Down

0 comments on commit 7d80bfc

Please sign in to comment.