Jonell01 commited on
Commit
be10950
·
verified ·
1 Parent(s): c563042

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,8 +13,11 @@ WORKDIR /app
13
  # Install dependencies (if using Node.js)
14
  RUN npm install # Remove this if your project doesn't use npm
15
 
 
 
 
16
  # Expose the necessary port (modify based on your API)
17
  EXPOSE 8080
18
 
19
- # Start the server (modify according to your project's entry point)
20
- CMD ["node", "index.js"] # Change to your actual start file
 
13
  # Install dependencies (if using Node.js)
14
  RUN npm install # Remove this if your project doesn't use npm
15
 
16
+ # Ensure the script is executable
17
+ RUN chmod +x index.js
18
+
19
  # Expose the necessary port (modify based on your API)
20
  EXPOSE 8080
21
 
22
+ # Use 'node' to run the script
23
+ CMD ["node", "index.js"]