dante commited on
Commit
54b58fb
·
verified ·
1 Parent(s): bab234c

Upload 19 files

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. vite.config.ts +1 -1
Dockerfile CHANGED
@@ -1,8 +1,11 @@
1
  # Use Node.js 18 on Debian Bullseye
2
  FROM node:18-bullseye
3
 
4
- # Install Python 3 and Pip
5
- RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
 
 
 
6
 
7
  # Set working directory
8
  WORKDIR /app
 
1
  # Use Node.js 18 on Debian Bullseye
2
  FROM node:18-bullseye
3
 
4
+ # Install Python 3, Pip, and Build Essentials (for native modules like sharp)
5
+ RUN apt-get update && apt-get install -y python3 python3-pip build-essential && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Increase Node memory limit for build
8
+ ENV NODE_OPTIONS="--max-old-space-size=4096"
9
 
10
  # Set working directory
11
  WORKDIR /app
vite.config.ts CHANGED
@@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react';
5
  export default defineConfig({
6
  plugins: [react()],
7
  optimizeDeps: {
8
- exclude: ['lucide-react'],
9
  },
10
  server: {
11
  port: 3000,
 
5
  export default defineConfig({
6
  plugins: [react()],
7
  optimizeDeps: {
8
+ exclude: ['lucide-react', 'sharp'],
9
  },
10
  server: {
11
  port: 3000,