-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
45 lines (34 loc) · 1.06 KB
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
FROM debian:jessie-slim as build-chatscript
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
build-essential \
libghc-curl-dev \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/ChatScript/ChatScript /app/ChatScript
WORKDIR /app/ChatScript
RUN make -C ./SRC server -j 4
RUN ./BINARIES/ChatScript local build0=files0.txt
#remove unused parts (gitrepo, windows binaries, unused dicts)
RUN rm -rf .git \
BINARIES/*.exe \
BINARIES/*.dll \
DICT/PORTUGUESE \
DICT/GERMAN \
DICT/FRENCH \
DICT/ITALIAN \
DICT/DUTCH \
DICT/SPANISH \
SRC \
PDFDOCUMENTATION \
WIKI \
PAPERS \
HTMLDOCUMENTATION
FROM debian:jessie-slim
LABEL maintainer="ilya@apalkoff.ru"
COPY --from=build-chatscript /app /app
WORKDIR /app/ChatScript
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
EXPOSE 1024
CMD ["./BINARIES/ChatScript", "port=1024"]