chore(dependencies): update Bun lockfile and package configuration

- Update bun.lock with latest package versions
- Modify Dockerfile to improve dependency installation
- Remove preinstall script from package.json
- Add winston logging dependencies
- Adjust Docker build process for cleaner dependency management
This commit is contained in:
jango-blockchained
2025-02-04 21:42:50 +01:00
parent 905339fb67
commit e1db799b1d
6 changed files with 183 additions and 139 deletions

View File

@@ -17,13 +17,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Set build-time environment variables
ENV NODE_ENV=production \
NODE_OPTIONS="--max-old-space-size=2048"
NODE_OPTIONS="--max-old-space-size=2048" \
BUN_INSTALL_CACHE=0
# Copy only package files first
COPY package.json ./
# Install dependencies without lockfile
RUN bun install --no-cache
# Install dependencies with a clean slate
RUN rm -rf node_modules .bun bun.lockb && \
bun install --no-save
# Copy source files and build
COPY src ./src