searxng-app/Dockerfile

24 lines
812 B
Docker
Raw Normal View History

2020-05-30 05:13:39 +00:00
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
2017-03-09 11:29:33 +00:00
2020-07-10 09:02:00 +00:00
ARG VERSION=0.17.0
RUN mkdir -p /app/code /app/pkg
2017-03-09 11:29:33 +00:00
WORKDIR /app/code
2019-07-16 19:23:34 +00:00
RUN apt update && \
2020-03-04 20:30:01 +00:00
apt install -y python3 build-essential libxslt-dev python3-dev python3-virtualenv python3-setuptools zlib1g-dev libffi-dev libssl-dev python3-pip && \
2019-07-16 19:23:34 +00:00
rm -rf /var/cache/apt /var/lib/apt/lists
2020-07-10 09:02:00 +00:00
RUN curl -L https://github.com/asciimoo/searx/archive/v${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
RUN pip3 install --no-cache -r /app/code/requirements.txt
2019-07-16 19:28:51 +00:00
RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \
ln -sf /app/data/settings.yml /app/code/searx/settings.yml
2017-03-09 11:29:33 +00:00
2017-03-11 03:32:08 +00:00
RUN chown -R www-data.www-data /app/code
2017-03-09 11:29:33 +00:00
EXPOSE 8888
COPY start.sh /app/pkg/start.sh
2017-03-09 11:29:33 +00:00
CMD [ "/app/pkg/start.sh" ]