Azeez98 commited on
Commit
5292f5e
·
verified ·
1 Parent(s): 525e88a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Base image
2
  FROM python:3.12
3
 
 
 
 
4
  # Create non-root user
5
  RUN useradd -m -u 1000 user
6
  USER user
@@ -12,7 +15,7 @@ WORKDIR /app
12
 
13
 
14
  # Clone GitHub repo into /app
15
- RUN rm -rf /app && git clone https://github.com/Mekhlafi98/solverai.git -b develop2 /app
16
 
17
  # Install Python dependencies
18
  RUN pip install --no-cache-dir --upgrade pip gunicorn && \
 
1
  # Base image
2
  FROM python:3.12
3
 
4
+ # Avoid cache for git clone by using build args (change the value to bust cache)
5
+ ARG CACHEBUST=1
6
+
7
  # Create non-root user
8
  RUN useradd -m -u 1000 user
9
  USER user
 
15
 
16
 
17
  # Clone GitHub repo into /app
18
+ RUN git clone https://github.com/Mekhlafi98/solverai.git -b develop2 /app
19
 
20
  # Install Python dependencies
21
  RUN pip install --no-cache-dir --upgrade pip gunicorn && \