Using libgl1 lib instead of the entire python3-opencv to reduce image size.
Adding volume to image for the downloaded repo to make it persistent if not mapped. Adding examples for external models in docker-compose.
This commit is contained in:
parent
ff4112210f
commit
eccfd27370
|
@ -3,10 +3,12 @@ FROM python:3.10
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y wget git htop python3-opencv rsync
|
&& apt install -y wget git htop libgl1 rsync
|
||||||
|
|
||||||
COPY ./entrypoint.sh .
|
COPY ./entrypoint.sh .
|
||||||
|
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
|
|
||||||
|
VOLUME [ "/repo" ]
|
||||||
|
|
||||||
CMD [ "./entrypoint.sh" ]
|
CMD [ "./entrypoint.sh" ]
|
||||||
|
|
|
@ -9,8 +9,12 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/repo # The path the repo will be cloned into if it does not already exist
|
- ./:/repo # The path the repo, will be cloned into if it does not already exist
|
||||||
# - "/path/to/models:/sd/models/Stable-diffusion/remote" # The path to existing models to use
|
# Paths to existing models. Should bind to a subdirectory of the repo folder for that type with examples below
|
||||||
|
# - "/path/to/models:/repo/models/Stable-diffusion/remote"
|
||||||
|
# - "/path/to/embeddings:/repo/embeddings/remote"
|
||||||
|
# - "/path/to/VAE:/repo/models/VAE/remote"
|
||||||
|
# - "/path/to/Lora:/repo/models/Lora/remote"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
Loading…
Reference in New Issue