File tree Expand file tree Collapse file tree
official-templates/autoresearch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG BASE_IMAGE=non-existing
22FROM ${BASE_IMAGE}
33
4- # Clone autoresearch into workspace
4+ # Clone autoresearch to /opt (safe from volume mounts)
55ARG AUTORESEARCH_REF=master
66RUN git clone --branch ${AUTORESEARCH_REF} --depth 1 \
7- https://github.com/runpod/autoresearch.git /workspace /autoresearch
7+ https://github.com/runpod/autoresearch.git /opt /autoresearch
88
9- WORKDIR /workspace /autoresearch
9+ WORKDIR /opt /autoresearch
1010
1111# Install Python dependencies
1212RUN uv sync
1313
1414# Download data and train tokenizer (~2 min)
1515RUN uv run prepare.py
16+
17+ # Copy to /workspace on first boot (volume mount overlays /workspace at runtime)
18+ RUN echo '#!/bin/bash\n if [ ! -f /workspace/autoresearch/pyproject.toml ]; then\n cp -a /opt/autoresearch /workspace/autoresearch\n fi' > /pre_start.sh && \
19+ chmod +x /pre_start.sh
You can’t perform that action at this time.
0 commit comments