adowu commited on
Commit
2e65e5a
·
verified ·
1 Parent(s): e754e60

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM python:3.12
4
  # Ustaw katalog roboczy
5
  WORKDIR /code
6
  # Uruchom polecenie, aby sklonować repozytorium Searx
7
- RUN git clone https://github.com/searx/searx.git /code/searx-src
8
  # Skopiuj plik requirements.txt do kontenera
9
  COPY requirements.txt .
10
 
@@ -14,7 +14,7 @@ RUN pip install --no-cache-dir -r requirements.txt
14
 
15
 
16
  # Skopiuj zawartość katalogu searx-src do kontenera
17
- COPY searx-src /code/searx-src
18
 
19
  # Ustaw środowisko wirtualne jako domyślne dla interpretera Pythona
20
  ENV VIRTUAL_ENV=/usr/local/searx/searx-pyenv
@@ -25,13 +25,13 @@ RUN useradd -m -s /bin/bash searx && chown -R searx:searx /code
25
  USER searx
26
 
27
  # Zainstaluj zależności dla Searx
28
- RUN cd /code/searx-src && pip install -e .
29
 
30
  # Ustaw zmienną środowiskową wskazującą ścieżkę do pliku ustawień
31
  ENV SEARX_SETTINGS_PATH=/etc/searx/settings.yml
32
 
33
  # Skopiuj domyślny plik ustawień do kontenera
34
- COPY searx-src/utils/templates/etc/searx/use_default_settings.yml /etc/searx/settings.yml
35
 
36
  # Udostępnij port 8888
37
  EXPOSE 8888
 
4
  # Ustaw katalog roboczy
5
  WORKDIR /code
6
  # Uruchom polecenie, aby sklonować repozytorium Searx
7
+ RUN git clone https://github.com/searx/searx.git /code/searx
8
  # Skopiuj plik requirements.txt do kontenera
9
  COPY requirements.txt .
10
 
 
14
 
15
 
16
  # Skopiuj zawartość katalogu searx-src do kontenera
17
+ COPY searx /code/searx
18
 
19
  # Ustaw środowisko wirtualne jako domyślne dla interpretera Pythona
20
  ENV VIRTUAL_ENV=/usr/local/searx/searx-pyenv
 
25
  USER searx
26
 
27
  # Zainstaluj zależności dla Searx
28
+ RUN cd /code/searx && pip install -e .
29
 
30
  # Ustaw zmienną środowiskową wskazującą ścieżkę do pliku ustawień
31
  ENV SEARX_SETTINGS_PATH=/etc/searx/settings.yml
32
 
33
  # Skopiuj domyślny plik ustawień do kontenera
34
+ COPY searx/utils/templates/etc/searx/use_default_settings.yml /etc/searx/settings.yml
35
 
36
  # Udostępnij port 8888
37
  EXPOSE 8888