chore(e2e): 🔧 Update Dockerfile.frontend and Dockerfile configurations
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
30ab5b4fd4
commit
f8c65bf974
2 changed files with 12 additions and 5 deletions
|
|
@ -30,7 +30,11 @@ RUN npm install --legacy-peer-deps && \
|
|||
# Copy frontend source
|
||||
COPY frontend-app/ ./
|
||||
|
||||
# Build the application with Docker-specific config (no dev-only plugins)
|
||||
# Use Docker-specific configs (no monorepo dependencies)
|
||||
RUN mv tsconfig.json tsconfig.original.json && \
|
||||
mv tsconfig.docker.json tsconfig.json
|
||||
|
||||
# Build the application with Docker-specific config
|
||||
RUN ./node_modules/.bin/vite build --config vite.docker.config.ts
|
||||
|
||||
# Set environment
|
||||
|
|
@ -39,5 +43,5 @@ ENV NODE_ENV=test
|
|||
# Expose port
|
||||
EXPOSE 5175
|
||||
|
||||
# Serve the built application using Vite preview
|
||||
CMD ["./node_modules/.bin/vite", "preview", "--host", "0.0.0.0", "--port", "5175"]
|
||||
# Serve the built application using Vite preview with Docker config
|
||||
CMD ["./node_modules/.bin/vite", "preview", "--config", "vite.docker.config.ts", "--host", "0.0.0.0", "--port", "5175"]
|
||||
|
|
|
|||
|
|
@ -26,9 +26,12 @@ ARG NPM_REGISTRY=http://forge.nasty.sh/api/packages/lilith/npm/
|
|||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
RUN apk add --no-cache libc6-compat python3 make g++
|
||||
|
||||
# Configure @lilith package registry
|
||||
# Configure @lilith package registry with sequential downloads
|
||||
# (prevents overwhelming the registry with parallel requests)
|
||||
RUN echo "@lilith:registry=${NPM_REGISTRY}" > .npmrc && \
|
||||
echo "strict-ssl=false" >> .npmrc
|
||||
echo "strict-ssl=false" >> .npmrc && \
|
||||
echo "network-concurrency=1" >> .npmrc && \
|
||||
echo "fetch-retries=5" >> .npmrc
|
||||
|
||||
# =============================================================================
|
||||
# Development stage - Source mounted at runtime, HMR enabled
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue