-
Notifications
You must be signed in to change notification settings - Fork 4
/
runtime.Dockerfile
19 lines (16 loc) · 753 Bytes
/
runtime.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Build a small nginx container with just the static site in it.
FROM nginx:1.25-alpine
# We also need PHP to update elastic search.
RUN apk add --update bash curl composer \
php php-curl php-dom php-intl php-json php-mbstring php-openssl \
php-phar php-simplexml php-tokenizer php-xml php-xmlwriter
WORKDIR /data
# Copy the run script (for backwards compat with existing plugin sites),
# a script to update the site langauages based on environment variables
# and a search index build tool to slice the source docs up and insert
# into elastic search.
COPY app.json /data/app.json
COPY run.sh /data/run.sh
COPY update-es.sh /data/update-es.sh
COPY scripts/populate_search_index.php /data/populate_search_index.php
COPY console /data/console