Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
FROM node:20
|
2 |
RUN npm install -g pnpm
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
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"]
|