mahiatlinux commited on
Commit
e706e92
1 Parent(s): 962db8c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -4,5 +4,8 @@ COPY . .
4
  RUN npm i --omit=dev --no-package-lock
5
  USER node
6
 
7
- # Command to start the application and keep it running
8
- CMD ["sh", "-c", "node src/index.js & wait"]
 
 
 
 
4
  RUN npm i --omit=dev --no-package-lock
5
  USER node
6
 
7
+ COPY entrypoint.sh /entrypoint.sh
8
+ RUN chmod +x /entrypoint.sh
9
+
10
+ # Set the entry point script as the default command
11
+ ENTRYPOINT ["/entrypoint.sh"]