tejadhith commited on
Commit
6a04e87
·
verified ·
1 Parent(s): 844bf35

Extract corpus from bundled zip instead of gdown

Browse files
Files changed (1) hide show
  1. 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
- # Download shaders21k corpus (skip if data/ already present from COPY)
53
- RUN if [ ! -d /app/env/data/shadertoy ]; then \
 
 
 
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')" && \