move git clones to the last part of the image

This commit is contained in:
Dobromir Popov
2023-09-02 22:05:26 +00:00
parent a352872b72
commit 3de9f98a95

View File

@ -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