🔧 Fix E2E frontend Dockerfile node_modules cleanup

- Remove existing node_modules from copied source
- Add CI=true env for non-interactive pnpm install

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lilith 2026-01-02 22:05:39 -08:00
parent 140cc1992c
commit 9d33192a38

View file

@ -17,7 +17,11 @@ RUN echo "@lilith:registry=http://forge.nasty.sh/api/packages/lilith/npm/" > .np
# Copy ALL source code first (before install so pnpm can resolve workspace deps)
COPY frontend-dev/ ./
# Install dependencies with rebuild for esbuild
# Remove any existing node_modules from copied source
RUN rm -rf node_modules
# Install dependencies with rebuild for esbuild (CI=true for non-interactive mode)
ENV CI=true
RUN pnpm config set side-effects-cache false && \
pnpm install --no-frozen-lockfile && \
pnpm rebuild esbuild