aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 14b67b84c231283c2fa67ca10c662d97e8782ce1 (plain)
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
FROM alpine:latest

# Install required dependencies
RUN apk add --no-cache \
    libxml2-dev \
    curl-dev \
    shadow \
    git \
    make \
    gcc \
    musl-dev \
    pkgconf \
    openssl-dev \
    openrc

# Clone and install beaker
RUN git clone https://git.bwaaa.monster/beaker /tmp/beaker \
    && cd /tmp/beaker \
    && make \
    && make install \
    && rm -rf /tmp/beaker

# Import omnisearch source
WORKDIR /app
COPY . /app

# Clone and install omnisearch
RUN cd /app \
    && make \
    && make install-openrc

# Enable OpenRC and start the service
RUN rc-update add omnisearch default

# Expose the default port
EXPOSE 5000

# Start OpenRC and the service
CMD sh -c "openrc default && touch /run/openrc/softlevel && omnisearch"