searxng-app/Dockerfile
2022-01-23 10:45:00 -08:00

25 lines
848 B
Docker

FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
ARG VERSION=1.0.0
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/v${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
# Fix python UnicodeDecodeError
ENV LANG C.UTF-8
COPY start.sh /app/pkg/start.sh
CMD [ "/app/pkg/start.sh" ]