Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
FROM node:20
|
2 |
RUN npm install -g pnpm
|
3 |
-
|
|
|
4 |
# Create a non-root user
|
5 |
RUN useradd -m appuser
|
6 |
|
@@ -25,8 +26,7 @@ RUN pnpm install
|
|
25 |
RUN chmod -R 777 /home/appuser/react-video-editor
|
26 |
|
27 |
# Expose the port
|
28 |
-
|
29 |
-
ENV PORT 5173
|
30 |
|
31 |
# Start the application
|
32 |
CMD ["pnpm", "dev"]
|
|
|
1 |
FROM node:20
|
2 |
RUN npm install -g pnpm
|
3 |
+
EXPOSE 5173
|
4 |
+
ENV PORT 5173
|
5 |
# Create a non-root user
|
6 |
RUN useradd -m appuser
|
7 |
|
|
|
26 |
RUN chmod -R 777 /home/appuser/react-video-editor
|
27 |
|
28 |
# Expose the port
|
29 |
+
|
|
|
30 |
|
31 |
# Start the application
|
32 |
CMD ["pnpm", "dev"]
|