mirror of
https://github.com/searx/searx
synced 2024-12-11 08:25:27 +01:00
316c4607f2
- Install new packages needed to deploy search - Optimize dockerfile for more docker deamon caching - Pin a python2.7 base image.
23 lines
609 B
Docker
23 lines
609 B
Docker
FROM python:2.7-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN useradd searx
|
|
|
|
EXPOSE 5000
|
|
CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w", "searx.webapp"]
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
zlib1g-dev libxml2-dev libxslt1-dev libffi-dev build-essential \
|
|
libssl-dev openssl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --no-cache uwsgi
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache -r requirements.txt
|
|
|
|
COPY . /app
|
|
RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml
|