Extract corpus from bundled zip instead of gdown
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -49,8 +49,11 @@ RUN apt-get update && \
|
|
| 49 |
COPY --from=builder /app/env/.venv /app/.venv
|
| 50 |
COPY --from=builder /app/env /app/env
|
| 51 |
|
| 52 |
-
#
|
| 53 |
-
RUN if [
|
|
|
|
|
|
|
|
|
|
| 54 |
pip install --no-cache-dir gdown && \
|
| 55 |
gdown "1kIiBdeW9CEIfRlYOYTuxfWvN036k3Iig" -O /tmp/shaders.zip && \
|
| 56 |
python3 -c "import zipfile; zipfile.ZipFile('/tmp/shaders.zip').extractall('/app/env')" && \
|
|
|
|
| 49 |
COPY --from=builder /app/env/.venv /app/.venv
|
| 50 |
COPY --from=builder /app/env /app/env
|
| 51 |
|
| 52 |
+
# Extract shaders21k corpus from bundled zip (no external download needed)
|
| 53 |
+
RUN if [ -f /app/env/shader_data.zip ]; then \
|
| 54 |
+
python3 -c "import zipfile; zipfile.ZipFile('/app/env/shader_data.zip').extractall('/app/env')" && \
|
| 55 |
+
rm /app/env/shader_data.zip; \
|
| 56 |
+
elif [ ! -d /app/env/data/shadertoy ]; then \
|
| 57 |
pip install --no-cache-dir gdown && \
|
| 58 |
gdown "1kIiBdeW9CEIfRlYOYTuxfWvN036k3Iig" -O /tmp/shaders.zip && \
|
| 59 |
python3 -c "import zipfile; zipfile.ZipFile('/tmp/shaders.zip').extractall('/app/env')" && \
|