Skip to content

Instantly share code, notes, and snippets.

@austinhartzheim
Last active April 22, 2021 05:14
Show Gist options
  • Save austinhartzheim/89c587533e7739a61aaa348ded513579 to your computer and use it in GitHub Desktop.
Save austinhartzheim/89c587533e7739a61aaa348ded513579 to your computer and use it in GitHub Desktop.
Docker Development Environment
FROM debian:testing
RUN apt-get update && \
echo "Installing base libraries" && \
apt-get install -y build-essential libssl-dev man-db openssl pkg-config && \
echo "Installing Rust CLI utilities" && \
apt-get install -y bat exa fd-find hexyl ripgrep && \
ln /usr/bin/batcat /usr/bin/bat && \
echo "Installing other utilities" && \
apt-get install -y \
curl git htop iproute2 iputils-ping ipython3 procps screen tmux wget \
hping3 netcat
FROM px-base:latest
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN /root/.cargo/bin/cargo install cargo-audit cargo-edit cargo-udeps simple-http-server
FROM px-rust:latest
RUN apt-get install -y curl wget lsb-release wget software-properties-common gnupg gcc build-essential zlib1g-dev linux-headers-amd64 && \
echo "Installing Kernel development dependencies" && \
apt-get install -y bc bison flex libelf-dev
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11
RUN /root/.cargo/bin/cargo install cargo-bpf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment