Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
FROM rust:bullseye AS builder
WORKDIR /workdir
ARG PDU_VERSION=0.9.0
RUN git clone --depth 1 --branch ${PDU_VERSION} https://github.com/KSXGitHub/parallel-disk-usage.git && \
cd parallel-disk-usage && \
cargo build --bin pdu --release

# Pinned to 2023-03-14 version of "ubuntu" tag
FROM codercom/enterprise-base@sha256:991819021919f7e7132f8843f9b49de7c7072e6c4e1e358c6a9d0ba0587f4c87

Expand Down Expand Up @@ -76,6 +83,9 @@ RUN curl -LO "https://dl.k8s.io/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl && \
mv kubectl /usr/local/bin

COPY --from=0 /workdir/parallel-disk-usage/target/release/pdu /usr/local/bin/pdu
RUN chmod +x /usr/local/bin/pdu

RUN ssh-keyscan github.com 2>/dev/null > /etc/ssh/ssh_known_hosts

USER coder
Expand Down