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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -3,18 +3,18 @@ FROM python:3.12
3
 
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
 
11
  # Zainstaluj wymagane pakiety
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
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,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 && 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
 
3
 
4
  # Ustaw katalog roboczy
5
  WORKDIR /code
6
+
7
  # Uruchom polecenie, aby sklonować repozytorium Searx
8
+ RUN git clone https://github.com/searx/searx.git /code/searx-src
9
+
10
+ # Skopiuj plik requirements.txt z sklonowanego repozytorium
11
+ COPY searx-src/requirements.txt .
12
 
13
  # Zainstaluj wymagane pakiety
14
  RUN pip install --no-cache-dir -r requirements.txt
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
  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