ColamanAI commited on
Commit
fb817b0
·
verified ·
1 Parent(s): ef0bbf2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -30,8 +30,11 @@ RUN yarn install --production --registry https://registry.npmmirror.com/
30
  # Create the log directory and grant write permissions
31
  RUN mkdir -p /app/logs && chmod 777 /app/logs
32
 
33
- # Expose the port your app runs on
34
- EXPOSE 8000
35
 
36
- # Command to run your app using npm
37
- CMD ["npm", "start"]
 
 
 
 
30
  # Create the log directory and grant write permissions
31
  RUN mkdir -p /app/logs && chmod 777 /app/logs
32
 
33
+ # Specify port environment variable
34
+ ENV PORT 7860
35
 
36
+ # Expose port
37
+ EXPOSE $PORT
38
+
39
+ # Specify the command to be executed when the container starts
40
+ CMD ["node", "dist/index.js", "--port", "7860"]