adowu commited on
Commit
8b00913
·
verified ·
1 Parent(s): 0368056

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,6 +1,8 @@
1
  FROM alpine:3.19
2
- RUN git clone https://github.com/searxng/searxng /usr/local/searxng
3
- ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
 
 
4
  EXPOSE 8080
5
  VOLUME /etc/searxng
6
 
@@ -8,7 +10,7 @@ ARG SEARXNG_GID=977
8
  ARG SEARXNG_UID=977
9
 
10
  RUN addgroup -g ${SEARXNG_GID} searxng && \
11
- adduser -u ${SEARXNG_UID} -D -h /usr/local/searxng -s /bin/sh -G searxng searxng
12
 
13
  ENV INSTANCE_NAME=searxng \
14
  AUTOCOMPLETE= \
@@ -20,7 +22,7 @@ ENV INSTANCE_NAME=searxng \
20
  UWSGI_WORKERS=%k \
21
  UWSGI_THREADS=4
22
 
23
- WORKDIR /usr/local/searxng
24
 
25
  COPY requirements.txt ./requirements.txt
26
 
 
1
  FROM alpine:3.19
2
+
3
+ WORKDIR /code
4
+ RUN git clone https://github.com/searxng/searxng /code/searxng
5
+ ENTRYPOINT ["/sbin/tini","--","/code/searxng/dockerfiles/docker-entrypoint.sh"]
6
  EXPOSE 8080
7
  VOLUME /etc/searxng
8
 
 
10
  ARG SEARXNG_UID=977
11
 
12
  RUN addgroup -g ${SEARXNG_GID} searxng && \
13
+ adduser -u ${SEARXNG_UID} -D -h /code/searxng -s /bin/sh -G searxng searxng
14
 
15
  ENV INSTANCE_NAME=searxng \
16
  AUTOCOMPLETE= \
 
22
  UWSGI_WORKERS=%k \
23
  UWSGI_THREADS=4
24
 
25
+
26
 
27
  COPY requirements.txt ./requirements.txt
28