ARG DOCKER_REPOSITORY ARG DOCKER_TAG=latest FROM ${DOCKER_REPOSITORY}alltalk_tts_environment:${DOCKER_TAG} ARG DEEPSPEED_VERSION=0.16.3 ENV DEEPSPEED_VERSION=$DEEPSPEED_VERSION ############################################################################## # Directories: ############################################################################## ENV STAGE_DIR=/tmp RUN mkdir -p ${STAGE_DIR} ############################################################################## # Install python dependencies ############################################################################## ENV PIP_CACHE_DIR=/tmp/pip_cache RUN < build_deepspeed.sh #!/usr/bin/env bash source ~/.bashrc mkdir -p /deepspeed conda activate alltalk cd ${STAGE_DIR}/DeepSpeed DS_BUILD_OPS=1 python setup.py build_ext -j8 bdist_wheel mv ${STAGE_DIR}/DeepSpeed/dist/*.whl /deepspeed/ EOF EOR RUN chmod +x /build_deepspeed.sh ############################################################################## # Build DeepSpeed: ############################################################################## ENTRYPOINT ["/build_deepspeed.sh"]