Dockerfile 609B

12345678910111213141516171819202122
  1. FROM python:2.7-slim
  2. WORKDIR /app
  3. RUN useradd searx
  4. EXPOSE 5000
  5. CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w", "searx.webapp"]
  6. RUN apt-get update && \
  7. apt-get install -y --no-install-recommends \
  8. zlib1g-dev libxml2-dev libxslt1-dev libffi-dev build-essential \
  9. libssl-dev openssl && \
  10. rm -rf /var/lib/apt/lists/*
  11. RUN pip install --no-cache uwsgi
  12. COPY requirements.txt /app/requirements.txt
  13. RUN pip install --no-cache -r requirements.txt
  14. COPY . /app
  15. RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml