Giorgos Logiotatidis пре 10 година
родитељ
комит
0265e87e43
1 измењених фајлова са 21 додато и 0 уклоњено
  1. 21
    0
      Dockerfile

+ 21
- 0
Dockerfile Прегледај датотеку

@@ -0,0 +1,21 @@
1
+FROM debian:stable
2
+
3
+RUN apt-get update && \
4
+    apt-get install -y --no-install-recommends \
5
+            python-dev python2.7-minimal python-virtualenv \
6
+            python-pybabel python-pip zlib1g-dev \
7
+            libxml2-dev libxslt1-dev build-essential \
8
+            openssl
9
+
10
+RUN useradd searx
11
+
12
+WORKDIR /app
13
+RUN pip install uwsgi
14
+COPY requirements.txt /app/requirements.txt
15
+RUN pip install -r requirements.txt
16
+
17
+COPY . /app
18
+RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml
19
+
20
+EXPOSE 5000
21
+CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w",  "searx.webapp"]