adowu commited on
Commit
3a79508
·
verified ·
1 Parent(s): f96730c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -6,14 +6,10 @@ WORKDIR /code
6
  RUN pip install --upgrade pip
7
  # Uruchom polecenie, aby sklonować repozytorium Searx
8
  RUN git clone https://github.com/searx/searx.git /code/searx-src
9
-
10
  # Zainstaluj wymagane pakiety
11
  RUN pip install -r /code/searx-src/requirements.txt
12
 
13
- # Ustaw środowisko wirtualne jako domyślne dla interpretera Pythona
14
- ENV VIRTUAL_ENV=/usr/local/searx/searx-pyenv
15
- RUN echo "source $VIRTUAL_ENV/bin/activate" > /etc/profile.d/searx-pyenv.sh
16
-
17
  # Utwórz użytkownika searx i ustaw uprawnienia
18
  RUN useradd -m -s /bin/bash searx && chown -R searx:searx /code
19
  USER searx
 
6
  RUN pip install --upgrade pip
7
  # Uruchom polecenie, aby sklonować repozytorium Searx
8
  RUN git clone https://github.com/searx/searx.git /code/searx-src
9
+ RUN python3 -m venv venv && source venv/bin/activate
10
  # Zainstaluj wymagane pakiety
11
  RUN pip install -r /code/searx-src/requirements.txt
12
 
 
 
 
 
13
  # Utwórz użytkownika searx i ustaw uprawnienia
14
  RUN useradd -m -s /bin/bash searx && chown -R searx:searx /code
15
  USER searx