KingHacker9000 commited on
Commit
260a935
Β·
1 Parent(s): 66b2970

Fix diffvg build: clone tag v0.1.0 correctly

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -28,7 +28,12 @@ RUN pip install --upgrade pip \
28
  && pip install --no-cache-dir -r requirements.txt
29
 
30
  # β€”β€” Build diffvg from a known-good commit β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
31
- RUN git clone --filter=blob:none --depth 1 https://github.com/BachiLi/diffvg.git /tmp/diffvg \ && cd /tmp/diffvg \ && git fetch --depth 1 origin tag v0.1.0 \ && git checkout v0.1.0 \ && git submodule update --init --recursive \ && python setup.py install --user \ && cd /app && rm -rf /tmp/diffvg
 
 
 
 
 
32
 
33
  # β€”β€” Project code β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
34
  COPY --chown=appuser . /app
 
28
  && pip install --no-cache-dir -r requirements.txt
29
 
30
  # β€”β€” Build diffvg from a known-good commit β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
31
+ RUN git clone --depth 1 --branch v0.1.0 https://github.com/BachiLi/diffvg.git /tmp/diffvg \
32
+ && cd /tmp/diffvg \
33
+ && git submodule update --init --recursive \
34
+ && python setup.py install --user \
35
+ && cd /app \
36
+ && rm -rf /tmp/diffvg
37
 
38
  # β€”β€” Project code β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
39
  COPY --chown=appuser . /app