forked from Conchylicultor/DeepQA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (27 loc) · 827 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
29
30
31
32
33
34
35
36
37
38
## Dockerfile to build DeepQ&A container image
FROM python:3.5.2
## Dependencies
RUN \
apt-get -qq -y update && apt-get -y install unzip
RUN \
pip3 install -U nltk \
tqdm \
django \
asgi_redis \
channels && \
python3 -m nltk.downloader punkt
## Tensorflow
ARG TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp35-cp35m-linux_x86_64.whl
RUN \
pip3 install -U $TF_BINARY_URL
COPY ./ /root/DeepQA
## Run Config
# You should generate your own key if you want deploy it on a server
ENV CHATBOT_SECRET_KEY="e#0y6^6mg37y9^+t^p_$xwnogcdh=27)f6_=v^$bh9p0ihd-%v"
ENV CHATBOT_REDIS_URL="redis"
EXPOSE 8000
WORKDIR /root/DeepQA/chatbot_website
RUN python3 manage.py makemigrations
RUN python3 manage.py migrate
# Launch the server
CMD python3 manage.py runserver 0.0.0.0:8000