SamDNX commited on
Commit
40b252d
·
verified ·
1 Parent(s): 2383093

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -18,6 +18,9 @@ ENV HOME=/home/user \
18
 
19
  WORKDIR /home/user/app
20
 
 
 
 
21
  RUN git clone --depth 1 https://github.com/RebornX10/rebornx10.github.io.git . \
22
  && pip install --no-cache-dir --user -r requirements.txt
23
 
 
18
 
19
  WORKDIR /home/user/app
20
 
21
+ # Bust the build cache whenever master changes, so a rebuild always pulls the
22
+ # latest app code (otherwise the git clone layer is cached and stays stale).
23
+ ADD https://api.github.com/repos/RebornX10/rebornx10.github.io/git/refs/heads/master /tmp/ref.json
24
  RUN git clone --depth 1 https://github.com/RebornX10/rebornx10.github.io.git . \
25
  && pip install --no-cache-dir --user -r requirements.txt
26