Add deadsnakes PPA for Python 3.12
Some checks failed
Build and Push Docker Image / build (push) Failing after 29s
Some checks failed
Build and Push Docker Image / build (push) Failing after 29s
This commit is contained in:
@@ -15,8 +15,10 @@ ENV HF_HOME=/workspace/.cache/huggingface
|
|||||||
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
||||||
ENV TRANSFORMERS_CACHE=/workspace/.cache/huggingface/transformers
|
ENV TRANSFORMERS_CACHE=/workspace/.cache/huggingface/transformers
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies and add deadsnakes PPA for Python 3.12
|
||||||
RUN apt-get update && apt-get install -y \
|
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 \
|
||||||
python3.12-dev \
|
python3.12-dev \
|
||||||
python3.12-venv \
|
python3.12-venv \
|
||||||
@@ -119,9 +121,10 @@ RUN rm -rf models/checkpoints && ln -s /userdata/models/checkpoints models/check
|
|||||||
# Symlink HuggingFace cache
|
# Symlink HuggingFace cache
|
||||||
RUN ln -s /userdata/.cache/huggingface /workspace/.cache/huggingface
|
RUN ln -s /userdata/.cache/huggingface /workspace/.cache/huggingface
|
||||||
|
|
||||||
# Copy handler
|
# Copy handler and workflows
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
COPY handler.py /workspace/handler.py
|
COPY handler.py /workspace/handler.py
|
||||||
|
COPY workflows /workspace/workflows
|
||||||
|
|
||||||
# RunPod handler entrypoint
|
# RunPod handler entrypoint
|
||||||
CMD ["python", "-u", "handler.py"]
|
CMD ["python", "-u", "handler.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user