forked from RasaHQ/rasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_pretrained_embeddings_spacy_de
56 lines (43 loc) · 1.36 KB
/
Dockerfile_pretrained_embeddings_spacy_de
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM python:3.6-slim as builder
# if this installation process changes, the enterprise container needs to be
# updated as well
WORKDIR /build
COPY . .
RUN python setup.py sdist bdist_wheel
RUN find dist -maxdepth 1 -mindepth 1 -name '*.tar.gz' -print0 | xargs -0 -I {} mv {} rasa.tar.gz
FROM python:3.6-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 \
libpq-dev \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /install && \
mkdir /app
WORKDIR /install
# Copy as early as possible so we can cache ...
COPY alt_requirements/ ./alt_requirements
COPY requirements.txt .
RUN pip install -r alt_requirements/requirements_pretrained_embeddings_spacy.txt
COPY --from=builder /build/rasa.tar.gz .
RUN pip install ./rasa.tar.gz[sql,spacy]
RUN pip install https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-2.1.0/de_core_news_sm-2.1.0.tar.gz#egg=de_core_news_sm==2.1.0 --no-cache-dir > /dev/null \
&& python -m spacy link de_core_news_sm de
COPY sample_configs/config_pretrained_embeddings_spacy_de.yml /app/config.yml
VOLUME ["/app"]
WORKDIR /app
EXPOSE 5005
ENTRYPOINT ["rasa"]
CMD ["--help"]