Update Dockerfile and docker-compose.yaml for build process and volume configuration
This commit is contained in:
@@ -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"]
|
||||
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" ]
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user