-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-fr
More file actions
39 lines (29 loc) · 787 Bytes
/
Copy pathDockerfile-fr
File metadata and controls
39 lines (29 loc) · 787 Bytes
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
39
FROM python:2.7-slim
SHELL ["/bin/bash", "-c"]
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
build-essential \
wget \
openssh-client \
graphviz-dev \
pkg-config \
git-core \
openssl \
libssl-dev \
libffi6 \
libffi-dev \
libpng-dev \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /app
WORKDIR /app
# Copy as early as possible so we can cache ...
ADD requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir
ADD . .
RUN pip install rasa_core==0.10.4
RUN pip install sklearn_crfsuite
VOLUME ["/app/data"]
EXPOSE 5005 5006
CMD python bot.py -d data/servicing-bot-fr/models/dialogue -u data/servicing-bot-fr/models/servicing-bot-fr/model-fr --port $PORT -o log_file.log