Update Dockerfile
This commit is contained in:
parent
7da300774c
commit
9f77f0ef1e
13
Dockerfile
13
Dockerfile
@ -11,8 +11,6 @@ RUN addgroup -g ${SEARXNG_GID} searxng && \
|
|||||||
ENV INSTANCE_NAME=searxng \
|
ENV INSTANCE_NAME=searxng \
|
||||||
AUTOCOMPLETE= \
|
AUTOCOMPLETE= \
|
||||||
BASE_URL= \
|
BASE_URL= \
|
||||||
MORTY_KEY= \
|
|
||||||
MORTY_URL= \
|
|
||||||
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \
|
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \
|
||||||
UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini \
|
UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini \
|
||||||
UWSGI_WORKERS=%k \
|
UWSGI_WORKERS=%k \
|
||||||
@ -23,15 +21,14 @@ WORKDIR /usr/local/searxng
|
|||||||
# install necessary runtime packages
|
# install necessary runtime packages
|
||||||
RUN apk add --no-cache brotli tini openssl mailcap libxml2 libxslt pcre && rm -rf /root/.cache
|
RUN apk add --no-cache brotli tini openssl mailcap libxml2 libxslt pcre && rm -rf /root/.cache
|
||||||
|
|
||||||
# build and install uwsgi
|
COPY requirements.txt ./requirements.txt
|
||||||
RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers pcre-dev && pip install --no-cache "uwsgi~=2.0.0" \
|
|
||||||
|
# build and install uwsgi and necessary python packages
|
||||||
|
RUN apk add --no-cache -t build-dependencies build-base pcre-dev && pip install --no-cache "uwsgi~=2.0.0" \
|
||||||
|
&& pip install --no-cache -r requirements.txt \
|
||||||
&& apk del build-dependencies \
|
&& apk del build-dependencies \
|
||||||
&& rm -rf /root/.cache
|
&& rm -rf /root/.cache
|
||||||
|
|
||||||
# install necessary python packages
|
|
||||||
COPY requirements.txt ./requirements.txt
|
|
||||||
RUN pip install --no-cache -r requirements.txt
|
|
||||||
|
|
||||||
COPY --chown=searxng:searxng dockerfiles ./dockerfiles
|
COPY --chown=searxng:searxng dockerfiles ./dockerfiles
|
||||||
COPY --chown=searxng:searxng searx ./searx
|
COPY --chown=searxng:searxng searx ./searx
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user