Commit
Β·
260a935
1
Parent(s):
66b2970
Fix diffvg build: clone tag v0.1.0 correctly
Browse files- 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 --
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|