Refactor Docker Configuration and Enhance Build Process

- Removed the build context and Dockerfile specification from the `docker-compose.dev.yml` and `docker-compose.yml` files for the `ui` service, streamlining the configuration.
- Increased Node memory limit in the `Dockerfile.client` to prevent out of memory errors during the build process, ensuring smoother builds and improved performance.

These changes aim to simplify the Docker setup and enhance the reliability of the build process for the client application.
This commit is contained in:
JhumanJ
2025-05-15 20:07:39 +02:00
parent 9b2d4551b8
commit 0dfec52cf8
3 changed files with 2 additions and 21 deletions

View File

@@ -20,7 +20,8 @@ RUN npm cache clean --force && \
# RUN npm install esbuild@0.21.5
ADD ./client/ /app/
RUN npm run build
# Increase Node memory limit to prevent out of memory error during build
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
FROM node:20-alpine
WORKDIR /app