2019-09-13 19:12:50 +02:00
|
|
|
ARG FROM_IMAGE_NAME=nvcr.io/nvidia/tensorflow:19.08-py3
|
2019-07-25 16:53:05 +02:00
|
|
|
|
2019-11-28 07:25:21 +01:00
|
|
|
FROM tensorrtserver_client as trt
|
2019-07-25 16:53:05 +02:00
|
|
|
|
2019-03-18 19:45:05 +01:00
|
|
|
FROM ${FROM_IMAGE_NAME}
|
|
|
|
|
2019-11-08 16:17:58 +01:00
|
|
|
RUN apt-get update && apt-get install -y pbzip2 pv bzip2 libcurl3
|
2019-03-18 19:45:05 +01:00
|
|
|
|
|
|
|
RUN pip install toposort networkx pytest nltk tqdm html2text progressbar
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
RUN git clone https://github.com/openai/gradient-checkpointing.git
|
|
|
|
RUN git clone https://github.com/attardi/wikiextractor.git
|
|
|
|
RUN git clone https://github.com/soskek/bookcorpus.git
|
2019-09-13 19:12:50 +02:00
|
|
|
RUN git clone https://github.com/titipata/pubmed_parser
|
2019-03-18 19:45:05 +01:00
|
|
|
|
2019-09-13 19:12:50 +02:00
|
|
|
RUN pip3 install /workspace/pubmed_parser
|
|
|
|
|
|
|
|
#Copy the perf_client over
|
2019-11-07 22:07:47 +01:00
|
|
|
COPY --from=trt /workspace/install/ /workspace/install/
|
2019-07-25 16:53:05 +02:00
|
|
|
|
2019-11-07 22:07:47 +01:00
|
|
|
#Install the python wheel with pip
|
|
|
|
RUN pip install /workspace/install/python/tensorrtserver*.whl
|
2019-11-04 23:18:08 +01:00
|
|
|
|
2019-03-18 19:45:05 +01:00
|
|
|
WORKDIR /workspace/bert
|
|
|
|
COPY . .
|
|
|
|
|
2019-09-13 19:12:50 +02:00
|
|
|
ENV PYTHONPATH /workspace/bert
|
|
|
|
ENV BERT_PREP_WORKING_DIR /workspace/bert/data
|
2019-11-07 22:07:47 +01:00
|
|
|
ENV PATH //workspace/install/bin:${PATH}
|
2019-11-08 16:17:58 +01:00
|
|
|
ENV LD_LIBRARY_PATH /workspace/install/lib:${LD_LIBRARY_PATH}
|