|
@@ -1,11 +1,8 @@
|
1
|
1
|
FROM alpine:3.3
|
2
|
2
|
|
3
|
3
|
ENV BASE_URL=False IMAGE_PROXY=False
|
4
|
|
-
|
5
|
4
|
EXPOSE 8888
|
6
|
|
-
|
7
|
5
|
WORKDIR /usr/local/searx
|
8
|
|
-
|
9
|
6
|
CMD ["./run.sh"]
|
10
|
7
|
|
11
|
8
|
RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
|
|
@@ -16,7 +13,7 @@ RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
|
16
|
13
|
&& echo 'python searx/webapp.py' >> run.sh \
|
17
|
14
|
&& chmod +x run.sh
|
18
|
15
|
|
19
|
|
-COPY requirements.txt /usr/local/searx/requirements.txt
|
|
16
|
+COPY requirements.txt .
|
20
|
17
|
|
21
|
18
|
RUN apk -U add \
|
22
|
19
|
build-base \
|
|
@@ -31,7 +28,7 @@ RUN apk -U add \
|
31
|
28
|
openssl \
|
32
|
29
|
openssl-dev \
|
33
|
30
|
ca-certificates \
|
34
|
|
- && pip install --no-cache -r /usr/local/searx/requirements.txt \
|
|
31
|
+ && pip install --no-cache -r requirements.txt \
|
35
|
32
|
&& apk del \
|
36
|
33
|
build-base \
|
37
|
34
|
python-dev \
|
|
@@ -44,9 +41,9 @@ RUN apk -U add \
|
44
|
41
|
ca-certificates \
|
45
|
42
|
&& rm -f /var/cache/apk/*
|
46
|
43
|
|
47
|
|
-COPY . /usr/local/searx
|
|
44
|
+COPY . .
|
48
|
45
|
|
49
|
|
-RUN chown -R searx:searx /usr/local/searx
|
|
46
|
+RUN chown -R searx:searx *
|
50
|
47
|
|
51
|
48
|
USER searx
|
52
|
49
|
|