Add deadsnakes PPA for Python 3.12
Some checks failed
Build and Push Docker Image / build (push) Failing after 29s

This commit is contained in:
Nick
2025-12-26 10:12:33 +13:00
parent 9604caf8e0
commit 65e9f0a6f6

View File

@@ -15,8 +15,10 @@ ENV HF_HOME=/workspace/.cache/huggingface
ENV HF_HUB_ENABLE_HF_TRANSFER=1
ENV TRANSFORMERS_CACHE=/workspace/.cache/huggingface/transformers
# Install system dependencies
RUN apt-get update && apt-get install -y \
# Install system dependencies and add deadsnakes PPA for Python 3.12
RUN apt-get update && apt-get install -y software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get update && apt-get install -y \
python3.12 \
python3.12-dev \
python3.12-venv \
@@ -119,9 +121,10 @@ RUN rm -rf models/checkpoints && ln -s /userdata/models/checkpoints models/check
# Symlink HuggingFace cache
RUN ln -s /userdata/.cache/huggingface /workspace/.cache/huggingface
# Copy handler
# Copy handler and workflows
WORKDIR /workspace
COPY handler.py /workspace/handler.py
COPY workflows /workspace/workflows
# RunPod handler entrypoint
CMD ["python", "-u", "handler.py"]