This commit is contained in:
2026-01-06 16:43:18 +01:00
parent fc46d0952a
commit 8f29b335a5
2 changed files with 7 additions and 4 deletions

View File

@@ -20,7 +20,10 @@ RUN pacman -Syu --noconfirm --needed \
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
VOLUME /opt/bhs COPY src /opt/bhs/
COPY Cargo.toml /opt/bhs/
COPY Cargo.lock /opt/bhs/
WORKDIR /opt/bhs WORKDIR /opt/bhs
RUN cargo build --release && cp ./target/release/black_hole_share /usr/local/bin/black_hole_share && black_hole_share; RUN cargo build --release && cp ./target/release/black_hole_share /usr/local/bin/black_hole_share && black_hole_share;

View File

@@ -6,9 +6,9 @@ services:
container_name: black_hole_share container_name: black_hole_share
volumes: volumes:
- ./data:/data - ./data:/data
- ./src:/opt/bhs/src #- ./src:/opt/bhs/src
- ./Cargo.lock:/opt/bhs/Cargo.lock #- ./Cargo.lock:/opt/bhs/Cargo.lock
- ./Cargo.toml:/opt/bhs/Cargo.toml #- ./Cargo.toml:/opt/bhs/Cargo.toml
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
labels: labels: