Update Dockerfile
Browse files- Dockerfile +6 -20
Dockerfile
CHANGED
@@ -1,27 +1,13 @@
|
|
|
|
1 |
FROM python:3.12
|
2 |
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
# Install dependencies
|
6 |
-
RUN
|
7 |
-
|
8 |
-
|
9 |
-
py3-babel \
|
10 |
-
py3-pip \
|
11 |
-
uwsgi \
|
12 |
-
uwsgi-python3 \
|
13 |
-
git \
|
14 |
-
build-base \
|
15 |
-
libxslt-dev \
|
16 |
-
zlib-dev \
|
17 |
-
libffi-dev \
|
18 |
-
openssl-dev \
|
19 |
-
shellcheck \
|
20 |
-
cython && \
|
21 |
-
apk add --no-cache \
|
22 |
-
openssl \
|
23 |
-
bash \
|
24 |
-
su-exec
|
25 |
|
26 |
# Create user and set permissions
|
27 |
RUN adduser -D -H -s /bin/bash searx && \
|
@@ -45,4 +31,4 @@ RUN . /usr/local/searx/searx-pyenv/bin/activate && \
|
|
45 |
|
46 |
# Install searx dependencies
|
47 |
RUN . /usr/local/searx/searx-pyenv/bin/activate && \
|
48 |
-
pip install -e /usr/local/searx/searx-src
|
|
|
1 |
+
# Use the official Python 3.12 image
|
2 |
FROM python:3.12
|
3 |
|
4 |
+
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
7 |
# Install dependencies
|
8 |
+
RUN apt-get update && \
|
9 |
+
apt-get install -y --no-install-recommends python3 python3-pip git build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev && \
|
10 |
+
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Create user and set permissions
|
13 |
RUN adduser -D -H -s /bin/bash searx && \
|
|
|
31 |
|
32 |
# Install searx dependencies
|
33 |
RUN . /usr/local/searx/searx-pyenv/bin/activate && \
|
34 |
+
pip install -e /usr/local/searx/searx-src
|