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"