Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
FROM node:20
|
2 |
RUN npm install -g pnpm
|
3 |
|
4 |
-
|
5 |
-
ENV PORT 5173
|
6 |
-
|
7 |
-
# Expose a fixed port
|
8 |
-
|
9 |
|
|
|
|
|
10 |
# Create a non-root user
|
11 |
RUN useradd -m appuser
|
12 |
|
@@ -31,4 +29,4 @@ RUN pnpm install
|
|
31 |
RUN chmod -R 777 /home/appuser/react-video-editor
|
32 |
|
33 |
# Start the application
|
34 |
-
RUN npm run dev
|
|
|
1 |
FROM node:20
|
2 |
RUN npm install -g pnpm
|
3 |
|
4 |
+
EXPOSE 3000
|
|
|
|
|
|
|
|
|
5 |
|
6 |
+
ENV PORT 3000
|
7 |
+
ENV HOSTNAME 0.0.0.0
|
8 |
# Create a non-root user
|
9 |
RUN useradd -m appuser
|
10 |
|
|
|
29 |
RUN chmod -R 777 /home/appuser/react-video-editor
|
30 |
|
31 |
# Start the application
|
32 |
+
RUN npm run dev
|