forked from Conchylicultor/DeepQA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.gpu
37 lines (27 loc) · 866 Bytes
/
Dockerfile.gpu
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
## Dockerfile to build DeepQ&A container image
FROM nvidia/cuda:8.0-cudnn5-devel
## Dependencies
RUN \
apt-get -qq -y update && apt-get -y install unzip python3 python3-pip
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/gpu/tensorflow_gpu-1.0.0-cp34-cp34m-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