-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (41 loc) · 1.25 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
FROM ubuntu:16.04
MAINTAINER Andrey F. Kupreychik <[email protected]>
ENV DEBIAN_FRONTEND='noninteractive' \
LANG='C.UTF-8'
RUN \
apt-get update && \
apt-get -y --no-install-recommends install \
wget curl ca-certificates supervisor cron \
nginx php7.0-cli php7.0-curl php7.0-fpm php7.0-gd \
php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-mbstring \
php7.0-readline make default-jre-headless unzip && \
rm -f /etc/php/7.0/fpm/pool.d/* /etc/nginx/sites-enabled/* && \
rm -rf /etc/logrotate.d/* && \
rm -rf /var/lib/apt/lists/*
COPY composer.json setup.sh /var/www/
RUN \
cd /var/www && \
bash ./setup.sh && \
rm setup.sh composer.json
COPY core /var/www/core
COPY db /var/www/db
COPY lib /var/www/lib
COPY plugins /var/www/plugins
COPY static /var/www/static
COPY cron.php index.php ping.php Makefile /var/www/
COPY data/sone.qfc.php.sample /etc/simpleone/
RUN \
mkdir /data && \
cd /var/www && \
ln -s /data ./data && \
mkdir ./logs
# config
ADD docker/ /
RUN \
chmod 0600 /etc/crontab && \
chmod 0644 /etc/logrotate.d/* && \
ln -s /etc/nginx/sites-available/simpleone.conf /etc/nginx/sites-enabled/simpleone.conf
EXPOSE 80
WORKDIR /var/www
VOLUME /data /var/www/logs /var/log
CMD ["/bin/start.sh"]