FROM archlinux:latest ENV TERM=xterm-256color RUN pacman -Syu --noconfirm --needed \ base-devel \ git \ curl \ wget \ vim \ nano \ tzdata \ ca-certificates \ iputils \ net-tools \ traceroute \ && pacman -Sc --noconfirm \ && rm -rf /var/cache/pacman/pkg/* RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" COPY src /opt/bhs/src COPY Cargo.toml /opt/bhs/Cargo.toml COPY Cargo.lock /opt/bhs/Cargo.lock WORKDIR /opt/bhs RUN ls -al ./ RUN cargo build --release RUN cp ./target/release/black_hole_share /usr/local/bin/black_hole_share WORKDIR / CMD [ "black_hole_share" ]