-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
77 lines (57 loc) · 2.19 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM debian:9
ADD ./docker-apt-get-install.sh /docker-apt-get-install.sh
MAINTAINER wikitolearn [email protected]
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN /docker-apt-get-install.sh zip
RUN /docker-apt-get-install.sh unzip
RUN /docker-apt-get-install.sh nano
RUN /docker-apt-get-install.sh curl
RUN /docker-apt-get-install.sh rsync
RUN /docker-apt-get-install.sh git
RUN /docker-apt-get-install.sh lsb-release
RUN /docker-apt-get-install.sh mariadb-client
RUN /docker-apt-get-install.sh imagemagick
RUN /docker-apt-get-install.sh inkscape
RUN /docker-apt-get-install.sh libicu-dev
RUN /docker-apt-get-install.sh python
RUN /docker-apt-get-install.sh supervisor
RUN /docker-apt-get-install.sh ssmtp && \
sed -i 's/#FromLineOverride=YES/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf && sed -i '/hostname=/d' /etc/ssmtp/ssmtp.conf
RUN /docker-apt-get-install.sh logrotate
RUN /docker-apt-get-install.sh cron
RUN /docker-apt-get-install.sh anacron
RUN /docker-apt-get-install.sh nginx
RUN /docker-apt-get-install.sh binutils
RUN /docker-apt-get-install.sh lsof
RUN /docker-apt-get-install.sh mlock
RUN /docker-apt-get-install.sh libcurl4-openssl-dev
RUN /docker-apt-get-install.sh libzip4
RUN /docker-apt-get-install.sh libsnappy1v5
RUN /docker-apt-get-install.sh libtbb2
RUN /docker-apt-get-install.sh libmcrypt4
RUN /docker-apt-get-install.sh php-fpm
RUN /docker-apt-get-install.sh php-mysqlnd
RUN /docker-apt-get-install.sh php-mbstring
RUN /docker-apt-get-install.sh php-opcache
RUN /docker-apt-get-install.sh php-intl
RUN /docker-apt-get-install.sh php-apcu
RUN /docker-apt-get-install.sh php-xml
RUN /docker-apt-get-install.sh php-curl
RUN rm /var/www/* -Rf
EXPOSE 80 443
ADD ./kickstart.sh /
ADD ./etc/ /etc/
ADD ./opt/ /opt/
RUN chmod +x /kickstart.sh
RUN ln -s /etc/nginx/sites-available/mediawiki /etc/nginx/sites-enabled/
RUN sed -i 's#;clear_env = no#clear_env = no#g' /etc/php/7.0/fpm/pool.d/www.conf
RUN mkdir /var/log/webserver/
RUN mkdir /var/log/mediawiki/
RUN chmod +x /opt/websrv-post-script.sh
RUN touch /var/log/php7.0-fpm.log
RUN chmod 777 /var/log/php7.0-fpm.log
RUN mkdir /run/php/
CMD ["/kickstart.sh"]
RUN mkdir /var/www/WikiToLearn
WORKDIR /var/www/WikiToLearn