From a674fff17a0081adc579ba7ea686ff5729ab9a40 Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Tue, 27 Jun 2023 11:25:41 -0400 Subject: [PATCH] Update dockerignore, set venv to 3.10, pass cache to yarn vite buidl --- .dockerignore | 4 +++- docker/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 598a11e1eb..3f674f978d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,6 @@ !docker/docker-entrypoint.sh !LICENSE -node_modules \ No newline at end of file +**/node_modules +**/__pycache__ +**/*.egg-info \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index eff558563f..f3d7e4a59f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,7 +10,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update && apt-get install -y \ git \ - python3-venv \ + python3.10-venv \ python3-pip \ build-essential @@ -64,7 +64,8 @@ WORKDIR /build COPY invokeai/frontend/web/ ./ RUN --mount=type=cache,target=node_modules \ npm install --include dev -RUN yarn vite build +RUN --mount=type=cache,target=node_modules \ + yarn vite build #### Runtime stage ---------------------------------------