on master help sign in
Merge pull request #505 from Wonderfall/master
2b53ac9Adam Tauber
Dockerfile+6−2
@@ -1,9 +1,11 @@
1FROM alpine:3.3
1FROM alpine:3.3
2+MAINTAINER searx <https://github.com/asciimoo/searx>
3+LABEL description "A privacy-respecting, hackable metasearch engine."
2
4
3ENV BASE_URL=False IMAGE_PROXY=False
5ENV BASE_URL=False IMAGE_PROXY=False
4EXPOSE 8888
6EXPOSE 8888
5WORKDIR /usr/local/searx
7WORKDIR /usr/local/searx
6−CMD ["./run.sh"]
8+CMD ["/usr/bin/tini","--","/usr/local/searx/run.sh"]
7
9
8RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
10RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
9 && echo '#!/bin/sh' >> run.sh \
11 && echo '#!/bin/sh' >> run.sh \
@@ -15,7 +17,8 @@ RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
15
17
16COPY requirements.txt ./requirements.txt
18COPY requirements.txt ./requirements.txt
17
19
20+RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
18−RUN apk -U add \
21+ && apk -U add \
19 build-base \
22 build-base \
20 python \
23 python \
21 python-dev \
24 python-dev \
@@ -28,6 +31,7 @@ RUN apk -U add \
28 openssl \
31 openssl \
29 openssl-dev \
32 openssl-dev \
30 ca-certificates \
33 ca-certificates \
34+ tini@commuedge \
31 && pip install --no-cache -r requirements.txt \
35 && pip install --no-cache -r requirements.txt \
32 && apk del \
36 && apk del \
33 build-base \
37 build-base \