legends810 commited on
Commit
192dc5d
·
verified ·
1 Parent(s): 800c5c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -2,17 +2,11 @@ FROM node:18
2
 
3
  WORKDIR /app
4
  COPY . .
 
5
 
6
- # Font optimization और CSS processing को bypass करें
7
  ENV NEXT_TELEMETRY_DISABLED=1
8
- ENV NODE_ENV=production
 
9
 
10
- # Basic dependencies install करें
11
- RUN npm install --production --ignore-scripts
12
- RUN npm install next react react-dom
13
-
14
- # Manual build without font optimization
15
- RUN npx next build --no-lint || echo "Build completed with warnings"
16
-
17
- CMD ["npx", "next", "start"]
18
  EXPOSE 7860
 
2
 
3
  WORKDIR /app
4
  COPY . .
5
+ RUN chmod -R 755 /app
6
 
 
7
  ENV NEXT_TELEMETRY_DISABLED=1
8
+ RUN npm install
9
+ RUN npm run build
10
 
11
+ CMD ["npm", "start"]
 
 
 
 
 
 
 
12
  EXPOSE 7860