56 lines
1.4 KiB
Docker
56 lines
1.4 KiB
Docker
FROM debian:trixie-slim
|
|
|
|
# install important dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
antiword \
|
|
aspell \
|
|
aspell-en \
|
|
git \
|
|
libxml2 \
|
|
libimage-exiftool-perl \
|
|
net-tools \
|
|
poppler-utils \
|
|
python3 \
|
|
python3-chm \
|
|
python3-libxml2 \
|
|
python3-lxml \
|
|
python3-mutagen \
|
|
python3-pip \
|
|
unrtf \
|
|
unzip \
|
|
vim
|
|
|
|
# install recollcmd from recolls programmers website
|
|
COPY recoll.gpg /etc/apt/trusted.gpg.d/recoll.gpg
|
|
RUN apt-get install --reinstall -y ca-certificates
|
|
RUN apt-get update
|
|
RUN echo deb http://www.lesbonscomptes.com/recoll/debian/ buster main > \
|
|
/etc/apt/sources.list.d/recoll.list
|
|
RUN echo deb-src http://www.lesbonscomptes.com/recoll/debian/ buster main >> \
|
|
/etc/apt/sources.list.d/recoll.list
|
|
RUN apt-get install -y --no-install-recommends recollcmd python3-recoll
|
|
RUN apt-get autoremove
|
|
|
|
RUN apt-get -y install breeze-icon-theme python3-venv
|
|
|
|
# clean up
|
|
RUN apt-get clean
|
|
|
|
ARG SQUIRREL_VERSION=0.4.1
|
|
|
|
COPY dist/squirrel-${SQUIRREL_VERSION}-py3-none-any.whl squirrel-${SQUIRREL_VERSION}-py3-none-any.whl
|
|
|
|
RUN python3 -m venv --system-site-packages /opt/squirrel
|
|
RUN /opt/squirrel/bin/pip install squirrel-${SQUIRREL_VERSION}-py3-none-any.whl
|
|
RUN /opt/squirrel/bin/pip install gunicorn
|
|
COPY squirrel-cmd /opt/squirrel/bin/squirrel
|
|
|
|
ENV PATH /opt/squirrel/bin:${PATH}
|
|
|
|
ENV SQUIRREL_CONFIG /etc/squirrel/config.json
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["/opt/squirrel/bin/squirrel"]
|