Hanzo Dev commited on
Commit
31484f5
·
1 Parent(s): 0ebabe9

Use dev mode in Docker for faster startup

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -9
  2. package.json +1 -1
Dockerfile CHANGED
@@ -2,17 +2,10 @@ FROM node:20-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy everything
6
  COPY . .
7
 
8
- # Install dependencies
9
- RUN npm ci --legacy-peer-deps
10
 
11
- # Build the app
12
- RUN npm run build
13
-
14
- # Expose port
15
  EXPOSE 3000
16
 
17
- # Start with npm start
18
- CMD ["npm", "start"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY . .
6
 
7
+ RUN npm install --legacy-peer-deps
 
8
 
 
 
 
 
9
  EXPOSE 3000
10
 
11
+ CMD ["npm", "run", "dev"]
 
package.json CHANGED
@@ -7,7 +7,7 @@
7
  "url": "https://github.com/hanzoai/template-ai-chat-interface"
8
  },
9
  "scripts": {
10
- "dev": "next dev",
11
  "build": "next build",
12
  "start": "next start -H 0.0.0.0 -p 3000",
13
  "lint": "next lint",
 
7
  "url": "https://github.com/hanzoai/template-ai-chat-interface"
8
  },
9
  "scripts": {
10
+ "dev": "next dev -H 0.0.0.0 -p 3000",
11
  "build": "next build",
12
  "start": "next start -H 0.0.0.0 -p 3000",
13
  "lint": "next lint",