<reponame>LouieBHLu/eBay_Clustering

FROM ecr.vip.ebayc3.com/zhihan/ppl-raffle:next

LABEL maintainer="<EMAIL>"

SHELL ["/bin/bash", "-c"]

ENV PPL_HOME=/opt/ppl
ENV PYTHONPATH=$PYTHONPATH:${PPL_HOME}/scripts
ENV GIT_ACCESS_TOKEN=7ff236e65c2aca9e3606545b6f27934a0cf0a422
ENV GIT_HOST=github.ebay.com

# install odbc for hermes
RUN cd /tmp && curl -LO http://installsvc.vip.ebay.com/packages/carmel/ODBC/RELEASE/0.1.9/Linux/carmel-0.1.9.deb && dpkg -i carmel-0.1.9.deb && rm /tmp/*.deb
RUN conda install -c conda-forge -c pytorch -y \
    python=3.7 \
    unidecode spacy spacy-model-en_core_web_md \
    pandas dask scikit-learn \
    matplotlib \
    cudatoolkit=10.1 faiss-gpu
RUN conda clean -ay 

ARG GIT_ACCESS_TOKEN
RUN pip install transformers==3.5
RUN pip install git+https://${GIT_ACCESS_TOKEN}@github.ebay.com/weimliang/cluster.git --no-deps


ENV PPL_HOME=/opt/ppl
ENV PYTHONPATH=$PYTHONPATH:${PPL_HOME}/scripts

RUN mkdir -p ${PPL_HOME}/{bin,etc,scripts,sql}
ADD bin ${PPL_HOME}/bin
ADD etc ${PPL_HOME}/etc
ADD scripts ${PPL_HOME}/scripts
ADD sql ${PPL_HOME}/sql
