Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
| 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
|