mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
update
This commit is contained in:
@@ -15,27 +15,7 @@ COPY . .
|
||||
|
||||
# Build the app with production settings
|
||||
ENV NODE_ENV=production
|
||||
# Disable ESLint during build to avoid CRA/ESLint v9 plugin incompatibilities
|
||||
ENV DISABLE_ESLINT_PLUGIN=true
|
||||
# Skip CRA preflight checks (peer deps, eslint presence) to prevent extra work in CI builds
|
||||
ENV SKIP_PREFLIGHT_CHECK=true
|
||||
# Disable source maps to reduce memory usage
|
||||
ENV GENERATE_SOURCEMAP=false
|
||||
# Reduce memory footprint - Node.js in Docker needs more conservative settings
|
||||
ENV NODE_OPTIONS="--max-old-space-size=1024"
|
||||
# Limit webpack parallelism to reduce memory usage
|
||||
ENV CI=true
|
||||
# Allow build to continue even if TypeScript diagnostics exist; avoids heavy TS checks from blocking
|
||||
ENV TSC_COMPILE_ON_ERROR=true
|
||||
# Disable ForkTsCheckerWebpackPlugin via craco filter to further reduce memory
|
||||
ENV DISABLE_TS_TYPECHECK=true
|
||||
# Disable ESLint plugin completely
|
||||
ENV ESLINT_NO_DEV_ERRORS=true
|
||||
|
||||
# Clean npm cache before build to free up memory
|
||||
RUN npm cache clean --force 2>/dev/null || true
|
||||
|
||||
# Build with standard npm
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user