Files
bhs/Dockerfile
2026-01-06 16:50:04 +01:00

33 lines
638 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}"
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 /data
CMD [ "black_hole_share" ]