25 lines
555 B
Docker
25 lines
555 B
Docker
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}"
|
|
|
|
WORKDIR /data
|
|
RUN git clone https://git.qosnet.it/icsboyx/bhs.git
|
|
CMD cargo build --release && cp ./target/release/black_hole_share /usr/local/bin/black_hole_share && black_hole_share; |