Skip to content

Commit

Permalink
build(docker): debian docker image now cleans apt database when build…
Browse files Browse the repository at this point in the history
…ing image
  • Loading branch information
gh0st42 committed Feb 28, 2024
1 parent 4589dda commit 4a5ad3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockerfiles/Dockerfile.debian-bookwork-slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ FROM docker.io/rust:1.76 as builder
WORKDIR /root/
COPY . dtn7
RUN cd dtn7 && \
cargo install --locked --bins --examples --root /usr/local --path examples && \
cargo install --locked --bins --examples --root /usr/local --path core/dtn7
cargo install --locked --bins --examples --root /usr/local --path examples && \
cargo install --locked --bins --examples --root /usr/local --path core/dtn7
RUN cargo install --locked --bins --examples --root /usr/local dtn7-plus --git https://github.com/dtn7/dtn7-plus-rs --rev 010202e56 dtn7-plus

FROM docker.io/debian:bookworm-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt install net-tools iproute2 iputils-ping tcpdump wget curl -y
RUN apt-get update && apt install net-tools iproute2 iputils-ping tcpdump wget curl -y && rm -rf /var/lib/apt/lists/*

WORKDIR /
COPY --from=builder /usr/local/bin/* /usr/local/bin/
Expand Down

0 comments on commit 4a5ad3e

Please sign in to comment.