Spaces:
deepak191z
/
Runtime error

deepak191z commited on
Commit
e5e68b3
·
verified ·
1 Parent(s): 0d97daa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,7 +1,12 @@
1
  FROM node:20
2
  RUN npm install -g pnpm
3
- ENV PORT ${PORT:-7860}
4
- EXPOSE ${PORT}
 
 
 
 
 
5
  # Create a non-root user
6
  RUN useradd -m appuser
7
 
@@ -25,8 +30,5 @@ RUN pnpm install
25
  # Set permissions for the working directory
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"]
 
1
  FROM node:20
2
  RUN npm install -g pnpm
3
+
4
+ # Define a default port environment variable, which can be overridden
5
+ ENV PORT 7860
6
+
7
+ # Expose a fixed port
8
+ EXPOSE 7860
9
+
10
  # Create a non-root user
11
  RUN useradd -m appuser
12
 
 
30
  # Set permissions for the working directory
31
  RUN chmod -R 777 /home/appuser/react-video-editor
32
 
 
 
 
33
  # Start the application
34
  CMD ["pnpm", "dev"]