mirror of
https://github.com/searxng/searxng.git
synced 2024-11-05 04:40:11 +01:00
Better Dockerfile
This commit is contained in:
parent
5f05a3c585
commit
3dd41af67b
11
Dockerfile
11
Dockerfile
@ -1,11 +1,8 @@
|
|||||||
FROM alpine:3.3
|
FROM alpine:3.3
|
||||||
|
|
||||||
ENV BASE_URL=False IMAGE_PROXY=False
|
ENV BASE_URL=False IMAGE_PROXY=False
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
WORKDIR /usr/local/searx
|
WORKDIR /usr/local/searx
|
||||||
|
|
||||||
CMD ["./run.sh"]
|
CMD ["./run.sh"]
|
||||||
|
|
||||||
RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
|
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 \
|
|||||||
&& echo 'python searx/webapp.py' >> run.sh \
|
&& echo 'python searx/webapp.py' >> run.sh \
|
||||||
&& chmod +x run.sh
|
&& chmod +x run.sh
|
||||||
|
|
||||||
COPY requirements.txt /usr/local/searx/requirements.txt
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN apk -U add \
|
RUN apk -U add \
|
||||||
build-base \
|
build-base \
|
||||||
@ -31,7 +28,7 @@ RUN apk -U add \
|
|||||||
openssl \
|
openssl \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& pip install --no-cache -r /usr/local/searx/requirements.txt \
|
&& pip install --no-cache -r requirements.txt \
|
||||||
&& apk del \
|
&& apk del \
|
||||||
build-base \
|
build-base \
|
||||||
python-dev \
|
python-dev \
|
||||||
@ -44,9 +41,9 @@ RUN apk -U add \
|
|||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& rm -f /var/cache/apk/*
|
&& rm -f /var/cache/apk/*
|
||||||
|
|
||||||
COPY . /usr/local/searx
|
COPY . .
|
||||||
|
|
||||||
RUN chown -R searx:searx /usr/local/searx
|
RUN chown -R searx:searx *
|
||||||
|
|
||||||
USER searx
|
USER searx
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user