FROM python:3.8

RUN pip install tornado
RUN pip install -U spacy
RUN python -m spacy download en_core_web_md
RUN python -m spacy download fr_core_news_md

# Create app directory and copy sources
RUN mkdir /opt/spacy
COPY . /opt/spacy
WORKDIR /opt/spacy

# expose ports and run services
# English,French Models
EXPOSE 8087
EXPOSE 8088

ENTRYPOINT [ "python3", "run.py", "config.json"]
