From 3de9f98a9518669336661294fb261a25be016b77 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 2 Sep 2023 22:05:26 +0000 Subject: [PATCH] move git clones to the last part of the image --- docker/images.petals-ai.dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/images.petals-ai.dockerfile b/docker/images.petals-ai.dockerfile index 1a12743..3c6112f 100644 --- a/docker/images.petals-ai.dockerfile +++ b/docker/images.petals-ai.dockerfile @@ -16,12 +16,6 @@ ENV DHT_PEERS= ENV ENV_PARAMS= ENV ID_PATH=\dht\bootstrap1.id -# pull petals and bake it into the image. comment for lite image -RUN git clone https://github.com/d-popov/health.petals.dev.git && cd /health.petals.dev && pip install -r requirements.txt -RUN git clone https://github.com/d-popov/chat.petals.dev.git && cd /chat.petals.dev && pip install -r requirements.txt -RUN pip install git+https://github.com/d-popov/petals-ai.git -RUN pip install git+https://github.com/learning-at-home/hivemind - # FORMATTED_PEERS=$$(echo $$DHT_PEERS | sed "s/[^ ]\+/\'&\'/g")\n\ # FORMATTED_PEERS=$$(echo $$DHT_PEERS | sed "s/[^ ]\\+/\\'&\\'/g")\n\ @@ -98,6 +92,12 @@ case "$MODE" in\n\ ;;\n\ esac' > /entrypoint.sh && chmod +x /entrypoint.sh +# pull petals and bake it into the image. comment for lite image +RUN pip install git+https://github.com/d-popov/petals-ai.git +RUN pip install git+https://github.com/learning-at-home/hivemind +RUN git clone https://github.com/d-popov/chat.petals.dev.git && cd /chat.petals.dev && pip install -r requirements.txt +RUN git clone https://github.com/d-popov/health.petals.dev.git && cd /health.petals.dev && pip install -r requirements.txt + # if using separate entrypoint file: # COPY entrypoint.sh /entrypoint.sh # RUN chmod +x /entrypoint.sh TEST