diff --git a/docker-compose.yaml b/docker-compose.yaml index 64ecb80f..702f3555 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,7 @@ services: subtensor: build: context: ./docker/subtensor - dockerfile: docker/subtensor/Dockerfile + dockerfile: Dockerfile container_name: subtensor_machine ports: - "9945:9945" # Expose port 9945 @@ -15,7 +15,7 @@ services: subnet: build: context: ./docker/subnet - dockerfile: docker/subnet/Dockerfile + dockerfile: Dockerfile container_name: subnet_machine depends_on: - subtensor @@ -28,7 +28,7 @@ services: miner: build: context: ./docker/miner - dockerfile: docker/miner/Dockerfile + dockerfile: Dockerfile container_name: miner_machine ports: - "8093:8093" @@ -43,7 +43,7 @@ services: validator: build: context: ./docker/validator - dockerfile: docker/validator/Dockerfile + dockerfile: Dockerfile container_name: validator_machine ports: - "8000:8000" diff --git a/docker/miner/Dockerfile b/docker/miner/Dockerfile index 04884b0d..b912d4b6 100644 --- a/docker/miner/Dockerfile +++ b/docker/miner/Dockerfile @@ -26,18 +26,18 @@ RUN python3 -m venv /opt/bittensor-venv && \ /opt/bittensor-venv/bin/pip install python-dotenv # Copy the shared functions -COPY docker/functions.sh /app/functions.sh +COPY ../functions.sh /app/functions.sh # Copy the entrypoint script -COPY docker/miner/entrypoint.sh /app/entrypoint.sh +COPY ./entrypoint.sh /app/entrypoint.sh # Make the script executable RUN chmod +x /app/entrypoint.sh # Copy the neurons and masa directories -COPY neurons /app/neurons -COPY masa /app/masa -COPY requirements.txt /app/requirements.txt +COPY ../../neurons /app/neurons +COPY ../../masa /app/masa +COPY ../../requirements.txt /app/requirements.txt RUN /opt/bittensor-venv/bin/pip install -r /app/requirements.txt # Set the working directory diff --git a/docker/subnet/Dockerfile b/docker/subnet/Dockerfile index 5016700c..6e0b30f3 100644 --- a/docker/subnet/Dockerfile +++ b/docker/subnet/Dockerfile @@ -25,8 +25,8 @@ RUN python3 -m venv /opt/bittensor-venv && \ /opt/bittensor-venv/bin/pip install bittensor[torch] # Copy the subnet creation script -COPY docker/functions.sh /app/functions.sh -COPY docker/subnet/entrypoint.sh /app/entrypoint.sh +COPY ../functions.sh /app/functions.sh +COPY ./entrypoint.sh /app/entrypoint.sh # Make the script executable RUN chmod +x /app/entrypoint.sh diff --git a/docker/subtensor/Dockerfile b/docker/subtensor/Dockerfile index 8621a5ca..815efbde 100644 --- a/docker/subtensor/Dockerfile +++ b/docker/subtensor/Dockerfile @@ -31,7 +31,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ RUN git clone https://github.com/opentensor/subtensor.git # Copy the entyrpoint script into container -COPY docker/subtensor/entrypoint.sh /subtensor/entrypoint.sh +COPY ./entrypoint.sh /subtensor/entrypoint.sh # Set the working directory WORKDIR /subtensor @@ -69,7 +69,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ RUN git clone https://github.com/opentensor/subtensor.git # Copy the entrypoint script into container -COPY docker/subtensor/entrypoint.sh /subtensor/entrypoint.sh +COPY ./entrypoint.sh /subtensor/entrypoint.sh # Set the working directory WORKDIR /subtensor diff --git a/docker/validator/Dockerfile b/docker/validator/Dockerfile index 82b1c39b..9253b86d 100644 --- a/docker/validator/Dockerfile +++ b/docker/validator/Dockerfile @@ -26,13 +26,13 @@ RUN python3 -m venv /opt/bittensor-venv && \ /opt/bittensor-venv/bin/pip install python-dotenv # Copy the validator creation script -COPY docker/functions.sh /app/functions.sh -COPY docker/validator/entrypoint.sh /app/entrypoint.sh +COPY ../functions.sh /app/functions.sh +COPY ./entrypoint.sh /app/entrypoint.sh # Copy the neurons and masa directories -COPY neurons /app/neurons -COPY masa /app/masa -COPY requirements.txt /app/requirements.txt +COPY ../../neurons /app/neurons +COPY ../../masa /app/masa +COPY ../../requirements.txt /app/requirements.txt RUN /opt/bittensor-venv/bin/pip install -r /app/requirements.txt # Set the working directory