24 lines
927 B
Docker
24 lines
927 B
Docker
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
|
|
|
# this is one commit from 0.16.0 (https://github.com/asciimoo/searx/issues/1830)
|
|
ARG VERSION=f9c7a678d273c55a0e8a1a7a2dbfd696b2046e60
|
|
RUN mkdir -p /app/code /app/pkg
|
|
WORKDIR /app/code
|
|
|
|
RUN apt update && \
|
|
apt install -y python3 build-essential libxslt-dev python3-dev python3-virtualenv python3-setuptools zlib1g-dev libffi-dev libssl-dev python3-pip && \
|
|
rm -rf /var/cache/apt /var/lib/apt/lists
|
|
|
|
RUN curl -L https://github.com/asciimoo/searx/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
|
|
RUN pip3 install --no-cache -r /app/code/requirements.txt
|
|
|
|
RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \
|
|
ln -sf /app/data/settings.yml /app/code/searx/settings.yml
|
|
|
|
RUN chown -R www-data.www-data /app/code
|
|
|
|
EXPOSE 8888
|
|
|
|
COPY start.sh /app/pkg/start.sh
|
|
|
|
CMD [ "/app/pkg/start.sh" ]
|