-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDockerfile
48 lines (42 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"]