Spaces:
Sleeping
Sleeping
Georg commited on
Commit ·
971c84e
1
Parent(s): a586677
Optimized Docker build to fix OOM errors
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -17,7 +17,7 @@ ENV MAX_JOBS=1
|
|
| 17 |
RUN git clone --depth 1 https://github.com/NVlabs/nvdiffrast.git /tmp/nvdiffrast \
|
| 18 |
&& cd /tmp/nvdiffrast \
|
| 19 |
&& python3 setup.py install \
|
| 20 |
-
&& python3 -
|
| 21 |
&& python3 -c "import nvdiffrast.torch" \
|
| 22 |
&& rm -rf /tmp/nvdiffrast
|
| 23 |
|
|
|
|
| 17 |
RUN git clone --depth 1 https://github.com/NVlabs/nvdiffrast.git /tmp/nvdiffrast \
|
| 18 |
&& cd /tmp/nvdiffrast \
|
| 19 |
&& python3 setup.py install \
|
| 20 |
+
&& python3 -c \"import sysconfig; from pathlib import Path; site = Path(sysconfig.get_paths()['purelib']); dist = site / 'nvdiffrast-0.0.0.dist-info'; dist.mkdir(exist_ok=True); (dist / 'METADATA').write_text('Metadata-Version: 2.1\\\\nName: nvdiffrast\\\\nVersion: 0.0.0\\\\n'); (dist / 'WHEEL').write_text('Wheel-Version: 1.0\\\\nGenerator: manual\\\\nRoot-Is-Purelib: false\\\\nTag: py3-none-any\\\\n'); (dist / 'top_level.txt').write_text('nvdiffrast\\\\n'); (dist / 'RECORD').write_text('')\" \
|
| 21 |
&& python3 -c "import nvdiffrast.torch" \
|
| 22 |
&& rm -rf /tmp/nvdiffrast
|
| 23 |
|