Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -19,6 +19,9 @@ RUN git clone https://github.com/designcombo/react-video-editor.git .
|
|
| 19 |
# Change ownership of the entire project directory
|
| 20 |
RUN chown -R appuser:appuser /home/appuser/react-video-editor
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Switch to the non-root user
|
| 23 |
USER appuser
|
| 24 |
|
|
@@ -32,5 +35,8 @@ RUN pnpm run build
|
|
| 32 |
RUN mkdir -p /home/appuser/react-video-editor/.vite && \
|
| 33 |
chmod 755 /home/appuser/react-video-editor/.vite
|
| 34 |
|
| 35 |
-
#
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Change ownership of the entire project directory
|
| 20 |
RUN chown -R appuser:appuser /home/appuser/react-video-editor
|
| 21 |
|
| 22 |
+
# Set correct permissions for the project directory
|
| 23 |
+
RUN chmod -R 755 /home/appuser/react-video-editor
|
| 24 |
+
|
| 25 |
# Switch to the non-root user
|
| 26 |
USER appuser
|
| 27 |
|
|
|
|
| 35 |
RUN mkdir -p /home/appuser/react-video-editor/.vite && \
|
| 36 |
chmod 755 /home/appuser/react-video-editor/.vite
|
| 37 |
|
| 38 |
+
# Give write permissions to the node_modules directory
|
| 39 |
+
RUN chmod -R 755 /home/appuser/react-video-editor/node_modules
|
| 40 |
+
|
| 41 |
+
# Start the application with more verbose logging
|
| 42 |
+
CMD ["sh", "-c", "ls -la && pnpm run preview -- --host 0.0.0.0 --port 7860 --debug"]
|