-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.6-buster
MAINTAINER Nikos Oikonomou <nikos.oik93@gmail.com>
# Install build utilities
RUN apt-get update && apt-get install -y apt-utils tree gcc make apt-transport-https ca-certificates build-essential
# Check python env
RUN python3 --version
RUN pip3 --version
# Installing python dependencies spacy language model
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN python3 -m spacy download en_core_web_sm
# Copy source files to the working directory
COPY src/ /src/
RUN tree /src
# Change working directory
WORKDIR /src
EXPOSE 5000
EXPOSE 80
# Entrypoint /src/demo.py
ENTRYPOINT ["python3", "demo.py"]
#CMD ["hybrid", "wordvec_models/fasttext_archive/ft_v0.6.1.bin", "wordvec_models/tfidf_archive/tfidf_v0.3.pkl", "wordvec_models/index/ft_v0.6.1_post_index.pkl", "wordvec_models/index/tfidf_v0.3_post_index.pkl", "wordvec_models/index/extended_metadata.pkl", "10"]