Przeglądaj źródła

Add libgoogle-perftools-dev (#341)

- auto:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

Closes #326
AbdBarho 3 lat temu
rodzic
commit
b36de9ef2b
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 1 1
      docker-compose.yml
  2. 5 1
      services/AUTOMATIC1111/Dockerfile

+ 1 - 1
docker-compose.yml

@@ -28,7 +28,7 @@ services:
     <<: *base_service
     profiles: ["auto"]
     build: ./services/AUTOMATIC1111
-    image: sd-auto:46
+    image: sd-auto:47
     environment:
       - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
 

+ 5 - 1
services/AUTOMATIC1111/Dockerfile

@@ -67,7 +67,11 @@ RUN --mount=type=cache,target=/root/.cache/pip \
 # Note: don't update the sha of previous versions because the install will take forever
 # instead, update the repo state in a later step
 
-ARG SHA=076d624a297532d6e4abebe5807fd7c7504d7a73
+# TODO: either remove if fixed in A1111 (unlikely) or move to the top with other apt stuff
+RUN apt-get -y install libgoogle-perftools-dev && apt-get clean
+ENV LD_PRELOAD=libtcmalloc.so
+
+ARG SHA=0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
 RUN --mount=type=cache,target=/root/.cache/pip <<EOF
 cd stable-diffusion-webui
 git fetch