Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -28,5 +28,9 @@ RUN pnpm install
|
|
| 28 |
# Build the application
|
| 29 |
RUN pnpm run build
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# Start the application
|
| 32 |
CMD ["pnpm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 28 |
# Build the application
|
| 29 |
RUN pnpm run build
|
| 30 |
|
| 31 |
+
# Ensure the user has write permissions in the necessary directories
|
| 32 |
+
RUN mkdir -p /home/appuser/react-video-editor/.vite && \
|
| 33 |
+
chmod 755 /home/appuser/react-video-editor/.vite
|
| 34 |
+
|
| 35 |
# Start the application
|
| 36 |
CMD ["pnpm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "7860"]
|