From f4676517d813708fe78c911cb3d2d26e6f3a53bc Mon Sep 17 00:00:00 2001 From: Travis Fletcher Date: Tue, 27 Sep 2022 09:07:29 -0400 Subject: [PATCH] Added source to Docker image (#1329) # Description This will allow the image to be used outside of the repo (such as in a service like runpod, or by a novice user who doesn't want to pull the git repo and instead use `docker run ...`) once we start pushing the images to Docker Hub. Closes: Nothing, yet. This is a step in the direction of `#installation-packing:Docker` in Discord. # Checklist: - [x] I have changed the base branch to `dev` - [x] I have performed a self-review of my own code - [x] I have commented my code in hard-to-understand areas - [x] I have made corresponding changes to the documentation --- .dockerignore | 2 +- Dockerfile | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index ea564d8..bae2ec2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ -models/ +models/custom/ outputs/ src/ gfpgan/ diff --git a/Dockerfile b/Dockerfile index b287823..d841398 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,14 @@ COPY /data/DejaVuSans.ttf /usr/share/fonts/truetype/ ENV PYTHONPATH=/sd +COPY ./models /sd/models +COPY ./configs /sd/configs +COPY ./frontend /sd/frontend +COPY ./ldm /sd/ldm +# COPY ./gfpgan/ /sd/ +COPY ./optimizedSD /sd/optimizedSD +COPY ./scripts /sd/scripts + EXPOSE 7860 8501 COPY ./entrypoint.sh /sd/