|
FROM ubuntu:18.04 |
|
|
|
MAINTAINER Loreto Parisi [email protected] |
|
|
|
######################################## BASE SYSTEM |
|
# set noninteractive installation |
|
ARG DEBIAN_FRONTEND=noninteractive |
|
RUN apt-get update && apt-get install -y apt-utils |
|
RUN apt-get install -y --no-install-recommends \ |
|
build-essential \ |
|
pkg-config \ |
|
tzdata \ |
|
curl |
|
|
|
######################################## PYTHON3 |
|
RUN apt-get install -y \ |
|
python3 \ |
|
python3-pip |
|
|
|
# set local timezone |
|
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \ |
|
dpkg-reconfigure --frontend noninteractive tzdata |
|
|
|
# transfer-learning-conv-ai |
|
ENV PYTHONPATH /usr/local/lib/python3.6 |
|
COPY . . |
|
COPY docker/requirements.txt /tmp/requirements.txt |
|
RUN pip3 install --upgrade pip && pip3 install -r /tmp/requirements.txt |
|
|
|
# model zoo |
|
RUN mkdir models && \ |
|
curl https: |
|
cd models/ && \ |
|
tar -xvzf finetuned_chatbot_gpt.tar.gz && \ |
|
rm finetuned_chatbot_gpt.tar.gz |
|
|
|
CMD ["bash"] |