-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-recollwebui
57 lines (51 loc) · 1.98 KB
/
Dockerfile-recollwebui
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
57
FROM debian:buster-slim
MAINTAINER kolohals
LABEL description="recollsearch"
ARG DATADIR=/data
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL="C.UTF-8"
ARG UNAME=recolluser
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME && \
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
# install important dependencies
COPY recoll.gpg /home/$UNAME/.recoll/recoll.gpg
COPY recoll.conf /home/$UNAME/.recoll/recoll.conf
RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends python3 python3-pip python3-setuptools git gnupg && \
pip3 install waitress
RUN gpg --import /home/$UNAME/.recoll/recoll.gpg && gpg --export '7808CE96D38B9201' | apt-key add - && \
apt-get install --reinstall -yq ca-certificates && \
apt-get update && \
echo deb http://www.lesbonscomptes.com/recoll/debian/ buster main > \
/etc/apt/sources.list.d/recoll.list && \
echo deb-src http://www.lesbonscomptes.com/recoll/debian/ buster main >> \
/etc/apt/sources.list.d/recoll.list
RUN apt-get install -yq recollcmd python3-recoll
# Indexador de PDFS
RUN apt-get install -yq --no-install-recommends poppler-utils
# indexador de rtf e word
RUN apt-get install -yq --no-install-recommends unrtf antiword wv
RUN apt-get install -yq --no-install-recommends unzip \
libimage-exiftool-perl \
aspell-pt-br \
aspell-en \
python-libxslt1 \
python-mutagen
RUN mkdir $DATADIR && \
[ ! -d /home/$UNAME/.recoll ] && mkdir /home/$UNAME/.recoll || \
cd / && \
git clone https://github.com/ameisehaufen/kmrecollwebui.git && \
mv kmrecollwebui recollwebui
#git clone https://framagit.org/medoc92/recollwebui.git
#COPY *.py /recollwebui/
RUN apt-get remove -yq git && \
apt autoremove -yq && apt-get clean && rm -rf /var/lib/apt/lists/* && \
rm -rf recollwebui/.git
ENV RECOLL_CONFDIR=/home/$UNAME/.recoll
ENV RECOLL_INDEX_DIR=$DATADIR
VOLUME $DATADIR
VOLUME /home/$UNAME/.recoll
EXPOSE 8080
CMD ["/usr/bin/python3", "/recollwebui/webui-standalone.py", "-a", "0.0.0.0"]