Refactor Dockerfile and docker-compose for improved build process and clarity

This commit is contained in:
2026-01-06 16:33:23 +01:00
parent 292a081e9d
commit 63b780ac11
2 changed files with 7 additions and 4 deletions

View File

@@ -20,5 +20,8 @@ RUN pacman -Syu --noconfirm --needed \
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /opt/black_hole_share
RUN cargo build --release && cp ./target/release/black_hole_share /usr/local/bin/black_hole_share && black_hole_share;
WORKDIR /data
CMD cargo build --release && cp ./target/release/black_hole_share /usr/local/bin/black_hole_share && black_hole_share;
CMD [ "black_hole_share" ]