link caching directory

invokeai converts models into diffuser format and caches them. We don't want to have to regenerate this cache each time we rebuild container, but it will take a LOT of space on the local drive.
This commit is contained in:
oddomatik 2023-08-25 23:14:55 -07:00 committed by GitHub
parent 62aa878b46
commit f60d2b787e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ RUN rm -rf ${INVOKEAI_ROOT}/models/core/upscaling/realesrgan && \
ln -s /data/models/RealESRGAN ${INVOKEAI_ROOT}/models/core/upscaling/realesrgan ln -s /data/models/RealESRGAN ${INVOKEAI_ROOT}/models/core/upscaling/realesrgan
RUN rm -rf ${INVOKEAI_ROOT}/models/core/convert && \ RUN rm -rf ${INVOKEAI_ROOT}/models/core/convert && \
ln -s /data/models/invoke/ ${INVOKEAI_ROOT}/models/core/convert ln -s /data/models/invoke/ ${INVOKEAI_ROOT}/models/core/convert
RUN ln -s /data/config/invoke/.cache ${INVOKEAI_ROOT}/models/
#COPY docker/docker-entrypoint.sh ./ #COPY docker/docker-entrypoint.sh ./
RUN cp ${INVOKEAI_SRC}/docker/docker-entrypoint.sh ./ RUN cp ${INVOKEAI_SRC}/docker/docker-entrypoint.sh ./