Fixing the dockerfile (require triton + gcc for compiling).

This commit is contained in:
Ubuntu 2023-06-09 16:25:14 +00:00 committed by Nicolas Patry
parent 92f85c964d
commit 0b5859213e

View File

@ -159,11 +159,14 @@ COPY --from=builder /usr/src/target/release/text-generation-router /usr/local/bi
# Install launcher # Install launcher
COPY --from=builder /usr/src/target/release/text-generation-launcher /usr/local/bin/text-generation-launcher COPY --from=builder /usr/src/target/release/text-generation-launcher /usr/local/bin/text-generation-launcher
RUN apt update && apt install build-essential g++ -y
# AWS Sagemaker compatbile image # AWS Sagemaker compatbile image
FROM base as sagemaker FROM base as sagemaker
COPY sagemaker-entrypoint.sh entrypoint.sh COPY sagemaker-entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh RUN chmod +x entrypoint.sh
RUN pip install triton
ENTRYPOINT ["./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]