Spaces:
deepak191z
/
Runtime error

deepak191z commited on
Commit
48b5ca6
·
verified ·
1 Parent(s): d99f0d7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -28,7 +28,7 @@ RUN git clone https://github.com/designcombo/react-video-editor.git .
28
  # Install the project's dependencies
29
  RUN pnpm install
30
 
31
- # Build the application
32
  RUN pnpm run build
33
 
34
  # Production stage
@@ -48,11 +48,11 @@ RUN mkdir -p .next/cache
48
  RUN chown -R nextjs:nodejs .next
49
  RUN chmod -R 777 .next/cache
50
 
51
- # Copy the production build files
52
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
53
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
54
 
55
- # Copy node_modules from the sharp stage
56
  COPY --from=sharp /app/node_modules ./node_modules
57
 
58
  # Switch to non-root user
@@ -65,5 +65,5 @@ EXPOSE 7860
65
  ENV HOSTNAME "0.0.0.0"
66
  ENV PORT 7860
67
 
68
- # Start the application
69
- CMD ["pnpm", "run", "start"]
 
28
  # Install the project's dependencies
29
  RUN pnpm install
30
 
31
+ # Build the application in standalone mode
32
  RUN pnpm run build
33
 
34
  # Production stage
 
48
  RUN chown -R nextjs:nodejs .next
49
  RUN chmod -R 777 .next/cache
50
 
51
+ # Copy the standalone build files from the builder stage
52
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
53
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
54
 
55
+ # Copy node_modules from the sharp stage (optional)
56
  COPY --from=sharp /app/node_modules ./node_modules
57
 
58
  # Switch to non-root user
 
65
  ENV HOSTNAME "0.0.0.0"
66
  ENV PORT 7860
67
 
68
+
69
+ CMD ["pnpm", "dev"]