2015-09-08 23:05:37 +02:00
|
|
|
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"]
|
2015-02-17 12:45:54 +01:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2015-09-08 23:05:37 +02:00
|
|
|
zlib1g-dev libxml2-dev libxslt1-dev libffi-dev build-essential \
|
|
|
|
libssl-dev openssl && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2015-02-17 12:45:54 +01:00
|
|
|
|
2015-09-08 23:05:37 +02:00
|
|
|
RUN pip install --no-cache uwsgi
|
2015-02-17 12:45:54 +01:00
|
|
|
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
2015-09-08 23:05:37 +02:00
|
|
|
RUN pip install --no-cache -r requirements.txt
|
2015-02-17 12:45:54 +01:00
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml
|