| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:cb9335ce6f27399c2b17787739d6675502767c53e0335ded2a5f0d003d996650 in / |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates gnupg wget && wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --dearmor -o /usr/share/keyrings/intel-graphics.gpg && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble unified" > /etc/apt/sources.list.d/intel-gpu.list # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends python3.12 python3-pip python3.12-dev ffmpeg libsndfile1 libavdevice60 libswscale7 ca-certificates libze1 libze-intel-gpu1 intel-opencl-icd && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY requirements.txt ./ # buildkit |
| RUN /bin/sh -c pip3 install --break-system-packages --no-cache-dir -r requirements.txt # buildkit |
| RUN /bin/sh -c pip3 install --break-system-packages --no-cache-dir --no-deps torchcodec==0.16.0 --index-url https://download.pytorch.org/whl/cpu # buildkit |
| COPY app.py ./ # buildkit |
| RUN /bin/sh -c mkdir -p /voices /root/.cache/huggingface # buildkit |
| EXPOSE [8000/tcp] |
| CMD ["uvicorn" "app:app" "--host" "0.0.0.0" "--port" "8000" "--timeout-keep-alive" "120"] |