-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (23 loc) · 886 Bytes
/
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
ARG MEDIAWIKI_VERSION=stable
FROM mediawiki:${MEDIAWIKI_VERSION} as installer
RUN apt-get update && apt-get install -y wget ghostscript imagemagick xpdf-utils
# Download Extensions and Skins
COPY extensions.txt skins.txt /
WORKDIR /var/www/html/extensions
RUN while read file; do \
wget -nv -O - ${file} | tar xzf -; \
done < /extensions.txt
WORKDIR /var/www/html/skins
RUN while read file; do \
wget -nv -O - ${file} | tar xzf -; \
done < /skins.txt
COPY ./upload.ini /usr/local/etc/php/conf.d/
WORKDIR /var/www/html
FROM alpine as embedvideo
ADD https://gitlab.com/hydrawiki/extensions/EmbedVideo/-/archive/master/EmbedVideo-master.tar.gz /
WORKDIR /EmbedVideo
RUN tar xzf ../EmbedVideo-master.tar.gz
RUN mv EmbedVideo-master EmbedVideo
FROM installer
COPY --from=embedvideo /EmbedVideo /var/www/html/extensions
COPY ./LocalSettings.php /var/www/html/