abubasith86 commited on
Commit
2d5cd83
·
1 Parent(s): 7f09b9f
Files changed (1) hide show
  1. Dockerfile +1 -4
Dockerfile CHANGED
@@ -21,10 +21,7 @@ FROM node:23.7.0 as builder
21
  RUN apt-get update && apt-get install -y git
22
 
23
  # Clone the GitHub repository
24
- RUN git clone https://github.com/abubasith456/Node-WLA.git /usr/src/app
25
-
26
- # Print the last commit message
27
- RUN git --no-pager log -1
28
 
29
  # Set the working directory
30
  WORKDIR /usr/src/app
 
21
  RUN apt-get update && apt-get install -y git
22
 
23
  # Clone the GitHub repository
24
+ RUN if [ -d "/usr/src/app/.git" ]; then cd /usr/src/app && git pull; else git clone https://github.com/abubasith456/Node-WLA.git /usr/src/app; fi
 
 
 
25
 
26
  # Set the working directory
27
  WORKDIR /usr/src/app