diff options
| author | DinoShrimp <69805161+adinoshrimp@users.noreply.github.com> | 2026-03-20 22:57:00 +0100 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-03-27 00:20:52 -0400 |
| commit | 86a9ebb90a2ac07d836c1408e3a15feb8615bd62 (patch) | |
| tree | 6313b5645f8e96034175c68de7e911c6876bd448 /Dockerfile | |
| parent | 783a58d95487a1a8e97f1cc5f2fc58016e695b7e (diff) | |
| download | omnisearch-86a9ebb90a2ac07d836c1408e3a15feb8615bd62.tar.gz | |
Add docker compose
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14b67b8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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" |
