Permalink
19e8c33 Jan 8, 2018
2 contributors

Users who have contributed to this file

@MartinMikita @gordonstephens
49 lines (42 sloc) 1.18 KB
FROM debian:8
RUN apt-get -qq update && apt-get install -qq -y --no-install-recommends \
ca-certificates \
curl \
gawk \
libexpat1 \
libpq5 \
mysql-client \
nginx \
python \
python-setuptools \
python-pip \
python-crypto \
python-flask \
python-pil \
python-mysqldb \
unixodbc \
uwsgi \
uwsgi-plugin-python \
&& pip install -q natsort
RUN curl -s \
http://sphinxsearch.com/files/sphinxsearch_2.2.11-release-1~jessie_amd64.deb \
-o /tmp/sphinxsearch.deb \
&& dpkg -i /tmp/sphinxsearch.deb \
&& rm /tmp/sphinxsearch.deb \
&& easy_install -q flask-cache \
&& pip install -q supervisor \
&& mkdir -p /var/log/sphinxsearch \
&& mkdir -p /var/log/supervisord
VOLUME ["/data/"]
COPY conf/sphinx/*.conf /etc/sphinxsearch/
COPY conf/nginx/nginx.conf /etc/nginx/sites-available/default
COPY supervisor/*.conf /etc/supervisor/conf.d/
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY web /usr/local/src/websearch
COPY sphinx-reindex.sh /
COPY tests/* /tests/
ENV SPHINX_PORT=9312 \
SEARCH_MAX_COUNT=100 \
SEARCH_DEFAULT_COUNT=20
EXPOSE 80
CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]