searxng-app/Dockerfile

23 lines
798 B
Docker
Raw Normal View History

2019-07-16 19:22:51 +00:00
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
2017-03-09 11:29:33 +00:00
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 && \
apt install -y python build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev libffi-dev libssl-dev python-pip && \
rm -rf /var/cache/apt /var/lib/apt/lists
2019-07-16 19:28:51 +00:00
RUN curl -L https://github.com/asciimoo/searx/archive/ddee4861cee8d5b08e9219d4e727acc35fc3ca32.tar.gz | tar -xz --strip-components 1 -f -
RUN pip 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
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" ]