forked from deepset-ai/rasa-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
34 lines (28 loc) · 795 Bytes
/
dockerfile
File metadata and controls
34 lines (28 loc) · 795 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
FROM rasa/rasa:latest
WORKDIR '/app'
#COPY . /app
USER root
# WORKDIR /app
# COPY . /app
#COPY ./data /app/data
#COPY requirements.txt .
COPY data /app/data
COPY config.yml /app
COPY credentials.yml /app
COPY data /app
#COPY models /app
COPY domain.yml /app
COPY endpoints.yml /app
COPY requirements.txt /app
COPY socketChannel.py /app
COPY actions /app
#VOLUME /app/data
#VOLUME /app/models
RUN apt-get update && \
apt-get install -y build-essential
RUN pip install --upgrade pip setuptools
RUN pip install --verbose --no-cache-dir -r requirements.txt
#RUN pip install -U setuptools wheel
RUN python -m spacy download en_core_web_md
RUN rasa train
CMD ["run","-m","/app/models","--enable-api","--cors","*","--debug" ,"--endpoints", "endpoints.yml", "--log-file", "out.log", "--debug"]