Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -24,5 +24,8 @@ RUN chown -R node:node /app
|
|
| 24 |
# Switch to the node user
|
| 25 |
USER node
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Command to run the application
|
| 28 |
CMD ["npm", "run", "start"]
|
|
|
|
| 24 |
# Switch to the node user
|
| 25 |
USER node
|
| 26 |
|
| 27 |
+
# Command to build the application
|
| 28 |
+
CMD ["npm", "run", "build"]
|
| 29 |
+
|
| 30 |
# Command to run the application
|
| 31 |
CMD ["npm", "run", "start"]
|