-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
48 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SearXNG RAMA Edition Dockerfile
# This creates a container with SearXNG RAMA Edition bootstrapped for Docker
FROM ubuntu:22.04
# Avoid prompts from apt
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
python3 \
python3-pip \
python3-venv \
openssl \
&& rm -rf /var/lib/apt/lists/*
# Create the expected source directory
RUN mkdir -p /home/nomadx/searxng-custom
# Copy the RAMA project files
COPY . /app/searxng-RAMA
# Clone SearXNG source if not provided in build context
RUN if [ ! -d "/home/nomadx/searxng-custom/searx" ]; then \
echo "Cloning SearXNG source..." && \
cd /home/nomadx && \
git clone https://github.com/searxng/searxng.git searxng-custom && \
chown -R root:root /home/nomadx/searxng-custom; \
else \
echo "Using provided SearXNG source"; \
fi
# Run the Docker bootstrap script
RUN /app/searxng-RAMA/scripts/bootstrap-docker.sh
# Verify installation
RUN test -d /opt/searxng-rama && \
test -f /opt/searxng-rama/searx/settings.yml && \
test -d /opt/searxng-rama/searx/static/themes/rama
# Expose the port
EXPOSE 8855
# Start SearXNG directly
WORKDIR /opt/searxng-rama
CMD ["./venv/bin/python", "-m", "searx.webapp"]