From 301f6d6202707f821fae0cd60d81c16b07766e5d Mon Sep 17 00:00:00 2001 From: icsboyx Date: Tue, 6 Jan 2026 12:55:54 +0100 Subject: [PATCH] Update Dockerfile and docker-compose.yaml for build process and volume configuration --- Dockerfile | 4 +++- docker-compose.yaml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 72c8457..35598d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,6 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /data -CMD ["black_hole_share"] \ No newline at end of file +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; +ENTRYPOINT [ "black_hole_share" ] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index bcfc3b9..99c0b16 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,6 +6,9 @@ services: container_name: black_hole_share volumes: - ./data:/data + - ./src:/data/src + - .Cargo.lock:/data/.Cargo.lock + - .Cargo.toml:/data/.Cargo.toml - /etc/localtime:/etc/localtime:ro environment: - TZ="Europe/Rome"