Skip to content

Commit a674fff

Browse files
Brandon Risingebr
authored andcommitted
Update dockerignore, set venv to 3.10, pass cache to yarn vite buidl
1 parent 674f42b commit a674fff

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
!docker/docker-entrypoint.sh
55
!LICENSE
66

7-
node_modules
7+
**/node_modules
8+
**/__pycache__
9+
**/*.egg-info

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1010
--mount=type=cache,target=/var/lib/apt,sharing=locked \
1111
apt update && apt-get install -y \
1212
git \
13-
python3-venv \
13+
python3.10-venv \
1414
python3-pip \
1515
build-essential
1616

@@ -64,7 +64,8 @@ WORKDIR /build
6464
COPY invokeai/frontend/web/ ./
6565
RUN --mount=type=cache,target=node_modules \
6666
npm install --include dev
67-
RUN yarn vite build
67+
RUN --mount=type=cache,target=node_modules \
68+
yarn vite build
6869

6970

7071
#### Runtime stage ---------------------------------------

0 commit comments

Comments
 (0)