move git clones to the last part of the image
This commit is contained in:
@ -16,12 +16,6 @@ ENV DHT_PEERS=
|
|||||||
ENV ENV_PARAMS=
|
ENV ENV_PARAMS=
|
||||||
ENV ID_PATH=\dht\bootstrap1.id
|
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\
|
||||||
# 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\
|
;;\n\
|
||||||
esac' > /entrypoint.sh && chmod +x /entrypoint.sh
|
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:
|
# if using separate entrypoint file:
|
||||||
# COPY entrypoint.sh /entrypoint.sh
|
# COPY entrypoint.sh /entrypoint.sh
|
||||||
# RUN chmod +x /entrypoint.sh TEST
|
# RUN chmod +x /entrypoint.sh TEST
|
||||||
|
Reference in New Issue
Block a user