-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
45 lines (40 loc) · 1.11 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
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 iso8601
RUN curl -s \
http://sphinxsearch.com/files/sphinxsearch_2.2.10-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
COPY conf/sphinx/sphinx.conf /etc/sphinxsearch/
COPY conf/nginx/nginx.conf /etc/nginx/sites-available/default
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY web /usr/local/src/web
COPY sample.tsv /
COPY sphinx-reindex.sh /
ENV SPHINX_PORT=9312 \
SEARCH_MAX_COUNT=100 \
SEARCH_DEFAULT_COUNT=20
EXPOSE 80
CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]