adowu commited on
Commit
73f54af
·
verified ·
1 Parent(s): 42e4abb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -1
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
  FROM alpine
 
2
  RUN apk upgrade --no-cache \
3
  && apk add --no-cache -t build-dependencies \
4
  build-base \
@@ -11,4 +12,22 @@ RUN apk upgrade --no-cache \
11
  tar \
12
  git \
13
  docker
14
- RUN git clone https://github.com/searx/searx-docker
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM alpine
2
+
3
  RUN apk upgrade --no-cache \
4
  && apk add --no-cache -t build-dependencies \
5
  build-base \
 
12
  tar \
13
  git \
14
  docker
15
+
16
+ RUN git clone https://github.com/searxng/searxng-docker
17
+
18
+ WORKDIR /usr/local/searxng-docker
19
+
20
+ ENV COMPOSE_VERSION=1.29.2
21
+
22
+ RUN curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
23
+ && chmod +x /usr/local/bin/docker-compose
24
+
25
+ RUN sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml
26
+
27
+ COPY.env.
28
+
29
+ RUN docker-compose up -d
30
+
31
+ EXPOSE 80
32
+
33
+ CMD ["docker-compose", "up", "-d"]