Spaces:
Running
Running
osanseviero
commited on
Commit
•
c515dc7
1
Parent(s):
6d62471
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -16,5 +16,11 @@ COPY . .
|
|
16 |
# Expose the port your React app runs on
|
17 |
EXPOSE 7860
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
# Command to run the application
|
20 |
CMD ["npm", "run", "dev"]
|
|
|
16 |
# Expose the port your React app runs on
|
17 |
EXPOSE 7860
|
18 |
|
19 |
+
# Change ownership of /app to the node user
|
20 |
+
RUN chown -R node:node /app
|
21 |
+
|
22 |
+
# Switch to the node user
|
23 |
+
USER node
|
24 |
+
|
25 |
# Command to run the application
|
26 |
CMD ["npm", "run", "dev"]
|