-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
39 lines (31 loc) · 1.15 KB
/
Dockerfile
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
# Dockerfile
## Builds valadoc and serves it with a basic PHP server
# Cleanup and publish
FROM php:apache-bookworm
ENV DEBIAN_FRONTEND=noninteractive
# Install sphinxsearch for search index
RUN apt-get update -qq && apt-get install \
-qq \
--no-install-recommends \
wget
RUN wget https://repo.manticoresearch.com/manticore-repo.noarch.deb
RUN dpkg -i manticore-repo.noarch.deb
RUN apt-get update -qq && apt-get install \
-qq \
--no-install-recommends \
manticore manticore-extra
RUN mkdir -p /var/run/manticore
# Install the mysqli extension
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# Copy over all of the valadoc sphinx search data and configuration
RUN mkdir -p /opt/valadoc
COPY sphinx.conf /opt/valadoc/sphinx.conf
COPY sphinx /opt/valadoc/sphinx
# Copy over the build static html files
# This is disabled here as we bind-mount the image to move instead of copy the
# files as we run out of space on GitHub.
# COPY valadoc.org /var/www/html
# A couple default apache changes to make valadoc work
COPY apache.conf /etc/apache2/sites-available/000-default.conf
COPY docker-server.sh /usr/local/bin/valadoc.org
CMD ["valadoc.org"]