20 lines
619 B
Docker
20 lines
619 B
Docker
# Evalscope Docker image with project code built-in
|
|
# Based on the existing environment image
|
|
|
|
FROM evalscope-complete-py312:latest
|
|
|
|
# Overwrite /opt/evalscope with updated project code
|
|
COPY . /opt/evalscope
|
|
|
|
# Remove the old editable install and install local evalscope normally
|
|
RUN pip uninstall -y evalscope && \
|
|
pip install /opt/evalscope/evalscope --no-deps
|
|
|
|
# Verify run_1.py exists and imports work
|
|
RUN test -f /opt/evalscope/bash/run_1.py && \
|
|
echo "run_1.py found" && \
|
|
python3 -c "from evalscope import run_task, TaskConfig; print('evalscope import OK')"
|
|
|
|
WORKDIR /opt/evalscope
|
|
CMD ["/bin/bash"]
|