2022-05-17 14:57:21 +08:00
|
|
|
#FROM rayproject/ray:nightly
|
2022-06-08 16:47:57 +08:00
|
|
|
FROM ccr.ccs.tencentyun.com/cube-studio/ray:gpu
|
2022-05-17 14:57:21 +08:00
|
|
|
USER root
|
|
|
|
|
|
|
|
|
|
|
|
# 安装调试相关工具
|
|
|
|
RUN apt update && apt install -y --force-yes --no-install-recommends vim apt-transport-https gnupg2 ca-certificates-java rsync jq wget git dnsutils iputils-ping net-tools curl mysql-client locales zip software-properties-common
|
|
|
|
|
|
|
|
ENV TZ 'Asia/Shanghai'
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# 安装开发相关工具
|
|
|
|
RUN apt install -y python3-dev gcc automake autoconf libtool make ffmpeg build-essential
|
|
|
|
|
|
|
|
# 安装pip库
|
|
|
|
RUN pip install pysnooper cython
|
|
|
|
|
2022-07-12 17:19:55 +08:00
|
|
|
# 安装kubectl
|
2022-05-17 14:57:21 +08:00
|
|
|
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && mv kubectl /usr/bin/
|
|
|
|
|
|
|
|
# 便捷操作
|
|
|
|
RUN echo "alias ll='ls -alF'" >> /root/.bashrc && \
|
|
|
|
echo "alias la='ls -A'" >> /root/.bashrc && \
|
|
|
|
echo "alias vi='vim'" >> /root/.bashrc && \
|
|
|
|
/bin/bash -c "source /root/.bashrc"
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip3 install kubernetes==12.0.1 pysnooper psutil
|
|
|
|
RUN pip3 install scikit-learn==0.23.2 pandas numpy joblib
|
|
|
|
|
|
|
|
COPY job/sklearn_estimator/* /app/
|
|
|
|
COPY job/pkgs /app/job/pkgs
|
|
|
|
ENV PYTHONPATH=/app:$PYTHONPATH
|
|
|
|
|
|
|
|
ENTRYPOINT ["python3", "launcher.py"]
|