- Create automated build script with version extraction and Aliyun registry push - Add comprehensive HNSW implementation guide with step-by-step instructions - Update Dockerfile to use musl target and enc binary for deployment - Include performance optimization strategies and debugging tips
23 lines
659 B
Docker
23 lines
659 B
Docker
FROM python:3.13-slim
|
|
|
|
# Create necessary directories
|
|
RUN mkdir -p /home/admin/predict \
|
|
/home/admin/data \
|
|
/home/admin/workspace/job/logs \
|
|
/home/admin/workspace/job/output/predictions \
|
|
/home/admin/workspace/job/input
|
|
|
|
# Copy files to required locations according to manual
|
|
COPY run.sh /home/admin/predict/run.sh
|
|
RUN chmod 777 /home/admin/predict/run.sh
|
|
|
|
# Copy the compiled binary as 'test' executable
|
|
COPY target/x86_64-unknown-linux-musl/release/enc /home/admin/predict/test
|
|
RUN chmod +x /home/admin/predict/test
|
|
|
|
# Copy training data
|
|
COPY dataset/train.jsonl /home/admin/data/data.jsonl
|
|
|
|
# Set default command
|
|
CMD ["/home/admin/predict/run.sh"]
|