Update dockerignore, set venv to 3.10, pass cache to yarn vite buidl

This commit is contained in:
Brandon Rising 2023-06-27 11:25:41 -04:00 committed by Eugene Brodsky
parent 674f42ba9a
commit a674fff17a
2 changed files with 6 additions and 3 deletions

View File

@ -4,4 +4,6 @@
!docker/docker-entrypoint.sh
!LICENSE
node_modules
**/node_modules
**/__pycache__
**/*.egg-info

View File

@ -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 ---------------------------------------