|
| 1 | +FROM dsw-registry.cn-shanghai.cr.aliyuncs.com/pai/tensorflow:2.11-cpu-py39-ubuntu20.04-1 |
| 2 | +COPY docker/sources_20.04.list /etc/apt/sources.list |
| 3 | + |
| 4 | +# necessary for later commands to take effect |
| 5 | +RUN md5sum /etc/apt/sources.list |
| 6 | + |
| 7 | +RUN apt-get update |
| 8 | +RUN apt-get install apt-utils inetutils-ping wget curl telnet vim strace libpq-dev curl libsasl2-dev gcc g++ unzip openjdk-8-jdk -y |
| 9 | + |
| 10 | +RUN mkdir /EasyRec |
| 11 | +COPY requirements /EasyRec/requirements |
| 12 | +COPY requirements.txt /EasyRec/ |
| 13 | +COPY easy_rec /EasyRec/easy_rec/ |
| 14 | +COPY setup.cfg /EasyRec/ |
| 15 | +COPY setup.py /EasyRec/ |
| 16 | +COPY MANIFEST.in /EasyRec/ |
| 17 | +COPY README.md /EasyRec/ |
| 18 | +COPY scripts /EasyRec/scripts |
| 19 | + |
| 20 | +RUN curl "http://easyrec.oss-cn-beijing.aliyuncs.com/tools/odpscmd_public_0.45.0.zip" -o /EasyRec/odpscmd_public.zip |
| 21 | +RUN mkdir /usr/local/odps_clt/ && cd /usr/local/odps_clt/ && unzip /EasyRec/odpscmd_public.zip |
| 22 | +RUN ln -s /usr/local/odps_clt/bin/odpscmd /usr/local/bin/odpscmd |
| 23 | +RUN python -m pip install --upgrade pip |
| 24 | +RUN pip3 install pystack-debugger idna kafka-python -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 25 | +RUN pip3 install -r /EasyRec/requirements/runtime.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 26 | +RUN pip3 install -r /EasyRec/requirements/extra.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 27 | +RUN pip3 install https://tzrec.oss-cn-beijing.aliyuncs.com/third_party/graphlearn-1.2.0-cp39-cp39-linux_x86_64.whl -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 28 | +# RUN pip3 install http://easyrec.oss-cn-beijing.aliyuncs.com/releases/pai_automl-0.0.1rc1-py3-none-any.whl -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 29 | +RUN pip3 install tensorflow_probability==0.19.0 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 30 | +#RUN pip3 install encodings |
| 31 | +RUN pip3 install https://easyrec.oss-cn-beijing.aliyuncs.com/3rdparty/common_io-0.4.j2%2Btunnel-py2.py3-none-any.whl -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com |
| 32 | +RUN cd /EasyRec && pip install . |
| 33 | +RUN rm -rf /EasyRec |
| 34 | +# RUN python -c "import easy_rec; easy_rec.help(); import pyhive; import datahub; import kafka" |
| 35 | + |
| 36 | +COPY docker/hadoop_env.sh /opt/hadoop_env.sh |
0 commit comments